]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pci: pci-sysfs.c needs export.h for THIS_MODULE
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 27 May 2011 13:20:21 +0000 (09:20 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 26 Aug 2011 15:52:08 +0000 (11:52 -0400)
Otherwise, once you break the chain of implicit includes from
device.h --> module.h then you will get this:

pci-sysfs.c: In function ‘remove_store’:
pci-sysfs.c:350: error: ‘THIS_MODULE’ undeclared (first use in this function)
pci-sysfs.c:350: error: (Each undeclared identifier is reported only once
pci-sysfs.c:350: error: for each function it appears in.)
make[3]: *** [drivers/pci/pci-sysfs.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/pci/pci-sysfs.c

index 7bcf12adced7249674ec931ea034066fb6ef3d64..106be0d08f81ff7b9306d0ad364b86786349a5fe 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/sched.h>
 #include <linux/pci.h>
 #include <linux/stat.h>
+#include <linux/export.h>
 #include <linux/topology.h>
 #include <linux/mm.h>
 #include <linux/fs.h>