Skip to contentSkip to conversation

always export pci_scan_single_device

PATCH In review Adrian Bunk 2 participants 2 messages Nov 9, 2007 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 always export pci_scan_single_device

This patch fixes the following build error with CONFIG_HOTPLUG=n:

<-- snip -->

...
MODPOST 2137 modules
ERROR: "pci_scan_single_device" [drivers/edac/i82875p_edac.ko] undefined! make[2]: *** [__modpost] Error 1

<-- snip -->

---

 drivers/pci/probe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

f80ae6568224bd5e4d2387ec162d37c8e7fd545a

drivers/pci/probe.c +1 -1
index 463a5a9..de33a02 100644
@@ -1012,6 +1012,7 @@ struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn)
 
 	return dev;
 }
+EXPORT_SYMBOL(pci_scan_single_device);
 
 /**
  * pci_scan_slot - scan a PCI slot on a bus for devices.
@@ -1200,7 +1201,6 @@ EXPORT_SYMBOL(pci_add_new_bus);
 EXPORT_SYMBOL(pci_do_scan_bus);
 EXPORT_SYMBOL(pci_scan_slot);
 EXPORT_SYMBOL(pci_scan_bridge);
-EXPORT_SYMBOL(pci_scan_single_device);
 EXPORT_SYMBOL_GPL(pci_scan_child_bus);
 #endif
 
#1 lore raw

ACK: Doug Thompson <[email protected]>

Quoted 34 lines · --- Adrian Bunk

This patch fixes the following build error with CONFIG_HOTPLUG=n:

<-- snip -->

...
MODPOST 2137 modules
ERROR: "pci_scan_single_device" [drivers/edac/i82875p_edac.ko] undefined! make[2]: *** [__modpost] Error 1

<-- snip -->

---

 drivers/pci/probe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

f80ae6568224bd5e4d2387ec162d37c8e7fd545a

drivers/pci/probe.c +1 -0
index 463a5a9..de33a02 100644
@@ -1012,6 +1012,7 @@ struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn)
 
 	return dev;
 }
+EXPORT_SYMBOL(pci_scan_single_device);
 
 /**
  * pci_scan_slot - scan a PCI slot on a bus for devices.

drivers/pci/probe.c EXPORT_SYMBOL(pci_add_new_bus); · line 1206

Quoted 7 lines
drivers/pci/probe.c +0 -1
@@ -1200,7 +1201,6 @@ EXPORT_SYMBOL(pci_add_new_bus);
 EXPORT_SYMBOL(pci_do_scan_bus);
 EXPORT_SYMBOL(pci_scan_slot);
 EXPORT_SYMBOL(pci_scan_bridge);
-EXPORT_SYMBOL(pci_scan_single_device);
 EXPORT_SYMBOL_GPL(pci_scan_child_bus);
 #endif
 

W1DUG