* [PATCH] pci: export devm_request_pci_bus_resources to modules
@ 2016-06-20 15:45 Arnd Bergmann
2016-06-20 19:05 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2016-06-20 15:45 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: Arnd Bergmann, linux-pci, linux-kernel
Host drivers can be loadable modules, so we might run into this
build error with the new interface:
ERROR: devm_request_pci_bus_resources [drivers/pci/host/pcie-iproc.ko] undefined!
This adds an EXPORT_SYMBOL_GPL() line.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/pci/bus.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index 4c42a1013e3b..32efe8f5d5e9 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -132,6 +132,7 @@ int devm_request_pci_bus_resources(struct device *dev,
return 0;
}
+EXPORT_SYMBOL_GPL(devm_request_pci_bus_resources);
static struct pci_bus_region pci_32_bit = {0, 0xffffffffULL};
#ifdef CONFIG_PCI_BUS_ADDR_T_64BIT
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pci: export devm_request_pci_bus_resources to modules
2016-06-20 15:45 [PATCH] pci: export devm_request_pci_bus_resources to modules Arnd Bergmann
@ 2016-06-20 19:05 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2016-06-20 19:05 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Bjorn Helgaas, linux-pci, linux-kernel
On Mon, Jun 20, 2016 at 05:45:41PM +0200, Arnd Bergmann wrote:
> Host drivers can be loadable modules, so we might run into this
> build error with the new interface:
>
> ERROR: devm_request_pci_bus_resources [drivers/pci/host/pcie-iproc.ko] undefined!
>
> This adds an EXPORT_SYMBOL_GPL() line.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Folded in, thanks, Arnd!
> ---
> drivers/pci/bus.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
> index 4c42a1013e3b..32efe8f5d5e9 100644
> --- a/drivers/pci/bus.c
> +++ b/drivers/pci/bus.c
> @@ -132,6 +132,7 @@ int devm_request_pci_bus_resources(struct device *dev,
>
> return 0;
> }
> +EXPORT_SYMBOL_GPL(devm_request_pci_bus_resources);
>
> static struct pci_bus_region pci_32_bit = {0, 0xffffffffULL};
> #ifdef CONFIG_PCI_BUS_ADDR_T_64BIT
> --
> 2.9.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-20 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-20 15:45 [PATCH] pci: export devm_request_pci_bus_resources to modules Arnd Bergmann
2016-06-20 19:05 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).