From c47b6f1ae67393780c61d3026c6bed49c646c9f2 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Fri, 27 May 2011 09:20:21 -0400 Subject: [PATCH] pci: pci-sysfs.c needs export.h for THIS_MODULE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- drivers/pci/pci-sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 7bcf12adced7..106be0d08f81 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include -- 2.39.5