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

infiniband: Fix up users implicitly relying on getting stat.h

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>

+4
+1
drivers/infiniband/core/sysfs.c
··· 35 35 #include "core_priv.h" 36 36 37 37 #include <linux/slab.h> 38 + #include <linux/stat.h> 38 39 #include <linux/string.h> 39 40 40 41 #include <rdma/ib_mad.h>
+1
drivers/infiniband/hw/ipath/ipath_init_chip.c
··· 34 34 #include <linux/pci.h> 35 35 #include <linux/netdevice.h> 36 36 #include <linux/slab.h> 37 + #include <linux/stat.h> 37 38 #include <linux/vmalloc.h> 38 39 39 40 #include "ipath_kernel.h"
+1
drivers/infiniband/hw/ipath/ipath_sysfs.c
··· 32 32 */ 33 33 34 34 #include <linux/ctype.h> 35 + #include <linux/stat.h> 35 36 36 37 #include "ipath_kernel.h" 37 38 #include "ipath_verbs.h"
+1
drivers/infiniband/hw/mthca/mthca_provider.c
··· 40 40 41 41 #include <linux/sched.h> 42 42 #include <linux/slab.h> 43 + #include <linux/stat.h> 43 44 #include <linux/mm.h> 44 45 45 46 #include "mthca_dev.h"