]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: fix section mismatch in pci_scan_bus
authorSam Ravnborg <sam@ravnborg.org>
Tue, 29 Apr 2008 20:38:48 +0000 (22:38 +0200)
committerJesse Barnes <jbarnes@hobbes.lan>
Tue, 29 Apr 2008 20:41:59 +0000 (13:41 -0700)
commit98db6f193c93e9b4729215af2c9101210e11d26c
tree942e41010b70ae79897921aa13e16f372f4ea2e1
parent7663c1e2792a9662b23dec6e19bfcd3d55360b8f
x86: fix section mismatch in pci_scan_bus

Fix following section mismatch warning:
WARNING: vmlinux.o(.text+0x275616): Section mismatch in reference from the function pci_scan_bus() to the function .devinit.text:pci_scan_bus_parented()

The warning was seen with a CONFIG_DEBUG_SECTION_MISMATCH=y build.
The inline function pci_scan_bus refer to functions annotated
__devinit - so annotate it __devinit too.
This revealed a few x86 specific functions that were only
used from __init or __devinit context.
So annotate these __devinit and the warning was killed.

The added include in pci.h was not strictly required but
added to avoid being dependent on indirect includes.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Jesse Barnes <jbarnes@hobbes.lan>
arch/x86/pci/common.c
include/linux/pci.h