]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers: 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, 28 Jul 2011 04:26:50 +0000 (00:26 -0400)
commit3f1212c33bc5b4af8e5a2390b3d1eb59d5895245
tree4afaf102142b0d910cc35018ba3be041a14d102a
parent3a4a4a1dfe275bf5fc34274a559006075ffb65fa
drivers: 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