summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker2011-07-31 23:40:26 +0200
committerPaul Gortmaker2011-11-01 00:31:04 +0100
commit0c43871b4036444b8734d06ab9ec0bb9046aada4 (patch)
tree6b94d9132ef68746cb60690f6c5565857195597c
parentalpha: Add export.h for THIS_MODULE/EXPORT_SYMBOL (diff)
downloadkernel-qcow2-linux-0c43871b4036444b8734d06ab9ec0bb9046aada4.tar.gz
kernel-qcow2-linux-0c43871b4036444b8734d06ab9ec0bb9046aada4.tar.xz
kernel-qcow2-linux-0c43871b4036444b8734d06ab9ec0bb9046aada4.zip
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>
-rw-r--r--arch/sh/drivers/dma/dma-sysfs.c1
-rw-r--r--drivers/sh/intc/core.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/drivers/dma/dma-sysfs.c b/arch/sh/drivers/dma/dma-sysfs.c
index 1ee631d3725e..83cc704770d7 100644
--- a/arch/sh/drivers/dma/dma-sysfs.c
+++ b/arch/sh/drivers/dma/dma-sysfs.c
@@ -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>
diff --git a/drivers/sh/intc/core.c b/drivers/sh/intc/core.c
index c6ca115c71df..f8925299d7c0 100644
--- a/drivers/sh/intc/core.c
+++ b/drivers/sh/intc/core.c
@@ -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>