diff mbox

pci: export devm_request_pci_bus_resources to modules

Message ID 20160620154604.2280100-1-arnd@arndb.de (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Arnd Bergmann June 20, 2016, 3:45 p.m. UTC
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(+)

Comments

Bjorn Helgaas June 20, 2016, 7:05 p.m. UTC | #1
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
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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