sh: fix implicit use of stat.h in arch/sh specific files
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 31 Jul 2011 21:40:26 +0000 (17:40 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:31:04 +0000 (19:31 -0400)
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>
arch/sh/drivers/dma/dma-sysfs.c
drivers/sh/intc/core.c

index 1ee631d3725eab14286bad5e303ac4c25a716653..83cc704770d7488e489945655dcb3634285a9123 100644 (file)
@@ -11,6 +11,7 @@
  */
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/stat.h>
 #include <linux/sysdev.h>
 #include <linux/platform_device.h>
 #include <linux/err.h>
index c6ca115c71dfc57babfe3804494729d14f078b79..f8925299d7c0303b2f487c5b4a19120808e214b2 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/irq.h>
 #include <linux/io.h>
 #include <linux/slab.h>
+#include <linux/stat.h>
 #include <linux/interrupt.h>
 #include <linux/sh_intc.h>
 #include <linux/sysdev.h>