]> err.no Git - linux-2.6/commit
PCI: fix section mismatch warning in pci_scan_child_bus
authorSam Ravnborg <sam@ravnborg.org>
Sun, 17 Feb 2008 09:45:28 +0000 (10:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Mar 2008 23:07:03 +0000 (15:07 -0800)
commit0ab2b57f8db8a1bcdf24089074f5d2856a3ffb42
tree8760e4422044976a965e3afced826fe9c4c02eff
parent415b6d0e894333d8e5e5a384a483a01b9b782fc7
PCI: fix section mismatch warning in pci_scan_child_bus

Fix following warning:
WARNING: vmlinux.o(.text+0x47bdb1): Section mismatch in reference from the function pci_scan_child_bus() to the function .devinit.text:pcibios_fixup_bus()

We had plenty of functions that could be annotated __devinit but due to
the former restriction that exported symbols could not be annotated
they were not so.  So annotate these function and fix the references
from the pci/hotplug/* code to silence the resuting warnings.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug-pci.c
drivers/pci/hotplug/acpiphp_glue.c
drivers/pci/hotplug/cpci_hotplug_pci.c
drivers/pci/hotplug/pciehp_pci.c
drivers/pci/hotplug/shpchp_pci.c
drivers/pci/probe.c