Re: [PATCH] pcmcia: add missing include for new pci resource handler
From: Alan Cox
Date: Tue Jan 13 2015 - 12:10:36 EST
On Tue, 2015-01-13 at 15:11 +0100, Arnd Bergmann wrote:
> 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@xxxxxxxx>
> Cc: Alan Cox <alan@xxxxxxxxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Fixes: 02b03846bb2be ("pcmcia: add a new resource manager for non ISA systems"
Acked-by: Alan Cox <alan@xxxxxxxxxxxxxxx>
I hadn't intended it to be sucked on ARM although I guess it ought to
work there just fine.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/