]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
infiniband: Fix up users implicitly relying on getting stat.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 27 May 2011 17:27:45 +0000 (13:27 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 31 Jul 2011 08:05:53 +0000 (04:05 -0400)
They get it via module.h (via device.h) but we want to clean that up.
When we do, we'll get things like:

  CC [M]  drivers/infiniband/core/sysfs.o
  sysfs.c:361: error: 'S_IRUGO' undeclared here (not in a function)
  sysfs.c:654: error: 'S_IWUSR' undeclared here (not in a function)

so add in the stat header it is using explicitly in advance.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/infiniband/core/sysfs.c
drivers/infiniband/hw/ipath/ipath_sysfs.c
drivers/infiniband/hw/mthca/mthca_provider.c

index 9ab5df72df7bf3b3c93dfb7ef6dc21b9810592a3..ab7fc60aeb5d6cab906d72997533ada1e52586d8 100644 (file)
@@ -35,6 +35,7 @@
 #include "core_priv.h"
 
 #include <linux/slab.h>
+#include <linux/stat.h>
 #include <linux/string.h>
 
 #include <rdma/ib_mad.h>
index 8991677e9a082fed4827e914eb282d1437adcb41..75558f33f1cb9971c2db3e0a04ba9bf70e993e69 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include <linux/ctype.h>
+#include <linux/stat.h>
 
 #include "ipath_kernel.h"
 #include "ipath_verbs.h"
index 365fe0e14192ce7ecc715d609327758c03db54b8..463943ccf4627332c7e43f3be41dfaf4401c98d2 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <linux/sched.h>
 #include <linux/slab.h>
+#include <linux/stat.h>
 #include <linux/mm.h>
 
 #include "mthca_dev.h"