]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 6 Oct 2011 18:10:04 +0000 (14:10 -0400)
commit6731486b4afe93771cd37d53ebf8f0fd2a8e0cfc
tree5f22e997a52331b957cf16543d5559f8a570a857
parentbdb0ffa6dc12f6e7e1ca9b0a56afc25e55c16c85
pci: pci-sysfs.c needs export.h for THIS_MODULE

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