Sam Ravnborg 451124a7cc PCI: fix 4x section mismatch warnings
The following warnings were issued during build of
drivers/pci with an allyesconfig build:
WARNING: o-x86_64/drivers/pci/built-in.o(.text+0xdaf): Section mismatch in reference from the function pci_add_new_bus() to the function .devinit.text:pci_alloc_child_bus()
WARNING: o-x86_64/drivers/pci/built-in.o(.text+0x15e2): Section mismatch in reference from the function pci_scan_single_device() to the function .devinit.text:pci_scan_device()
WARNING: o-x86_64/drivers/pci/built-in.o(.text+0x1b0c5): Section mismatch in reference from the function pci_bus_assign_resources() to the function .devinit.text:pci_setup_bridge()
WARNING: o-x86_64/drivers/pci/built-in.o(.text+0x1b32d): Section mismatch in reference from the function pci_bus_size_bridges() to the function .devinit.text:pci_bus_size_cardbus()

Investigating each case closer it looked like all
referred functions are only used in the init phase
or during hotplug.
So to avoid wasting too much memory in the non-hotplug
case the simpler fix was to allow the fuctions to
use code/data from the __devinit sections.
This was done in all four case by adding the __ref
annotation.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-02-02 15:08:04 -08:00
..
2008-02-01 15:04:30 -08:00
2008-02-02 11:32:01 -08:00
2005-10-18 08:26:15 -07:00
2006-12-04 02:00:22 -05:00
2008-02-01 15:04:31 -08:00
2008-02-01 15:04:21 -08:00
2008-02-01 15:04:26 -08:00
2007-10-29 07:41:32 -07:00
2006-12-01 14:36:56 -08:00
2008-02-02 11:32:01 -08:00
2008-02-02 11:32:01 -08:00
2008-02-01 15:04:31 -08:00
2008-02-02 15:08:04 -08:00
2008-02-01 15:04:29 -08:00
2008-02-01 15:04:30 -08:00
2008-02-02 11:32:01 -08:00