]> 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>
Fri, 26 Aug 2011 15:52:08 +0000 (11:52 -0400)
commitc47b6f1ae67393780c61d3026c6bed49c646c9f2
treef951853a843023337318eaeb68042888aa4ce534
parent58abe88b659772f52e8f5b7d1b11fad03c1b973c
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