Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: fix implicit use of stat.h in arch/sh specific files

To fix:

arch/sh/drivers/dma/dma-sysfs.c:45:8: error: 'S_IRUGO' undeclared here (not in a function)
arch/sh/drivers/dma/dma-sysfs.c:75:8: error: 'S_IWUSR' undeclared here (not in a function)
make[4]: *** [arch/sh/drivers/dma/dma-sysfs.o] Error 1

drivers/sh/intc/core.c:449: error: 'S_IRUGO' undeclared here (not in a function)
make[5]: *** [drivers/sh/intc/core.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

+2
+1
arch/sh/drivers/dma/dma-sysfs.c
··· 11 11 */ 12 12 #include <linux/kernel.h> 13 13 #include <linux/init.h> 14 + #include <linux/stat.h> 14 15 #include <linux/sysdev.h> 15 16 #include <linux/platform_device.h> 16 17 #include <linux/err.h>
+1
drivers/sh/intc/core.c
··· 22 22 #include <linux/irq.h> 23 23 #include <linux/io.h> 24 24 #include <linux/slab.h> 25 + #include <linux/stat.h> 25 26 #include <linux/interrupt.h> 26 27 #include <linux/sh_intc.h> 27 28 #include <linux/sysdev.h>