Skip to contentSkip to conversation

x86: fix section mismatch in pcibios_scan_specific_bus

PATCH New Christoph Fritz 1 participant 1 message Jun 17, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix section mismatch in pcibios_scan_specific_bus

Fix following section mismatch in legacy function
pcibios_scan_specific_bus:

arch/x86/pci/built-in.o(.text+0x1637): Section mismatch in reference from the function pcibios_scan_specific_bus() to the function .devinit.text:pci_scan_bus_on_node()

The function pcibios_scan_specific_bus() references the function __devinit pci_scan_bus_on_node().

This is often because pcibios_scan_specific_bus lacks a __devinit annotation or the annotation of pci_scan_bus_on_nodeis wrong.

---
 arch/x86/pci/legacy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/pci/legacy.c +1 -1
index 8d460ea..c89266b 100644
@@ -36,7 +36,7 @@ int __init pci_legacy_init(void)
 	return 0;
 }
 
-void pcibios_scan_specific_bus(int busn)
+void __devinit pcibios_scan_specific_bus(int busn)
 {
 	int devfn;
 	long node;
Signature · 1 line
1.7.1