]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pcmcia: add missing include for new pci resource handler
authorArnd Bergmann <arnd@arndb.de>
Tue, 13 Jan 2015 14:11:55 +0000 (15:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jan 2015 18:12:25 +0000 (10:12 -0800)
The recently added rsrc_pci.c file calls pci_bus_alloc_resource without
including the header file that declares it, and that sometimes causes
a build warning on ARM:

drivers/pcmcia/rsrc_pci.c: In function 'find_io_region':
drivers/pcmcia/rsrc_pci.c:40:2: error: implicit declaration of function 'pci_bus_alloc_resource' [-Werror=implicit-function-declaration]

This adds the missing include statement.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 02b03846bb2be ("pcmcia: add a new resource manager for non ISA systems")
Acked-by: Alan Cox <alan@linux.intel.com>
Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pcmcia/rsrc_pci.c

index 8934d3c01f80dc3174171ebd875bf053a3ca8857..21c3683b1a53679ee04931cad5298b61f865fdb0 100644 (file)
@@ -1,6 +1,7 @@
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
+#include <linux/pci.h>
 
 #include <pcmcia/ss.h>
 #include <pcmcia/cistpl.h>