]> 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, 11 Aug 2011 21:32:08 +0000 (17:32 -0400)
commit3e31ff2b838a814083a44acc08ca91320b2de048
tree8755c65c1d148668382466643f5b19850cee350b
parentc0e1241457f9b37da7dac17694b4df01458137c7
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