diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-04-29 16:38:48 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.lan> | 2008-04-29 16:41:59 -0400 |
commit | 98db6f193c93e9b4729215af2c9101210e11d26c (patch) | |
tree | 942e41010b70ae79897921aa13e16f372f4ea2e1 /arch | |
parent | 7663c1e2792a9662b23dec6e19bfcd3d55360b8f (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/pci/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 2a4d751818b7..88b5416cf009 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c | |||
@@ -489,7 +489,7 @@ void pcibios_disable_device (struct pci_dev *dev) | |||
489 | pcibios_disable_irq(dev); | 489 | pcibios_disable_irq(dev); |
490 | } | 490 | } |
491 | 491 | ||
492 | struct pci_bus *pci_scan_bus_on_node(int busno, struct pci_ops *ops, int node) | 492 | struct pci_bus * __devinit pci_scan_bus_on_node(int busno, struct pci_ops *ops, int node) |
493 | { | 493 | { |
494 | struct pci_bus *bus = NULL; | 494 | struct pci_bus *bus = NULL; |
495 | struct pci_sysdata *sd; | 495 | struct pci_sysdata *sd; |
@@ -512,7 +512,7 @@ struct pci_bus *pci_scan_bus_on_node(int busno, struct pci_ops *ops, int node) | |||
512 | return bus; | 512 | return bus; |
513 | } | 513 | } |
514 | 514 | ||
515 | struct pci_bus *pci_scan_bus_with_sysdata(int busno) | 515 | struct pci_bus * __devinit pci_scan_bus_with_sysdata(int busno) |
516 | { | 516 | { |
517 | return pci_scan_bus_on_node(busno, &pci_root_ops, -1); | 517 | return pci_scan_bus_on_node(busno, &pci_root_ops, -1); |
518 | } | 518 | } |