Skip to contentSkip to conversation

pci: export devm_request_pci_bus_resources to modules

PATCH In review Arnd Bergmann 2 participants 2 messages Jun 20, 2016 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: export devm_request_pci_bus_resources to modules

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.

---
 drivers/pci/bus.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/bus.c +1 -0
index 4c42a1013e3b..32efe8f5d5e9 100644
@@ -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
Signature · 1 line
2.9.0
#1 lore raw
Quoted 8 lines · Arnd Bergmann

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.

Folded in, thanks, Arnd!

Quoted 19 lines
---
 drivers/pci/bus.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/bus.c +1 -0
index 4c42a1013e3b..32efe8f5d5e9 100644
@@ -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
Signature · 1 line
2.9.0