diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-01-21 20:22:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-22 01:34:30 -0500 |
commit | a1f35ba374bc421ab33e40163be2b57995b09962 (patch) | |
tree | 5df4759a6b6f93f8ec26e16738ee5c19050a8f03 /arch/sparc64/kernel/pci_sun4v.c | |
parent | d384e35a25445bb60457b7dab8cffe178c6b7ecb (diff) |
[SPARC64]: Fix of section mismatch warnings.
Fix following Section mismatch warning in sparc64:
WARNING: arch/sparc64/kernel/built-in.o(.text+0x13dec): Section mismatch: reference to .devinit.text:pci_scan_one_pbm (between 'psycho_scan_bus' and 'psycho_pbm_init')
WARNING: arch/sparc64/kernel/built-in.o(.text+0x14b58): Section mismatch: reference to .devinit.text:pci_scan_one_pbm (between 'sabre_scan_bus' and 'sabre_init')
WARNING: arch/sparc64/kernel/built-in.o(.text+0x15ea4): Section mismatch: reference to .devinit.text:pci_scan_one_pbm (between 'schizo_scan_bus' and 'schizo_pbm_init')
WARNING: arch/sparc64/kernel/built-in.o(.text+0x17780): Section mismatch: reference to .devinit.text:pci_scan_one_pbm (between 'pci_sun4v_scan_bus' and 'pci_sun4v_get_head')
WARNING: arch/sparc64/kernel/built-in.o(.text+0x17d5c): Section mismatch: reference to .devinit.text:pci_scan_one_pbm (between 'pci_fire_scan_bus' and 'pci_fire_get_head')
WARNING: arch/sparc64/kernel/built-in.o(.text+0x23860): Section mismatch: reference to .devinit.text:vio_dev_release (between 'vio_create_one' and 'vio_add')
WARNING: arch/sparc64/kernel/built-in.o(.text+0x23868): Section mismatch: reference to .devinit.text:vio_dev_release (between 'vio_create_one' and 'vio_add')
The pci_* were all missing __init annotations.
For the vio.c case it was a function with a wrong annotation which was removed.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/pci_sun4v.c')
-rw-r--r-- | arch/sparc64/kernel/pci_sun4v.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c index e587a372f3fe..1aa8e044b105 100644 --- a/arch/sparc64/kernel/pci_sun4v.c +++ b/arch/sparc64/kernel/pci_sun4v.c | |||
@@ -612,7 +612,7 @@ const struct dma_ops sun4v_dma_ops = { | |||
612 | .sync_sg_for_cpu = dma_4v_sync_sg_for_cpu, | 612 | .sync_sg_for_cpu = dma_4v_sync_sg_for_cpu, |
613 | }; | 613 | }; |
614 | 614 | ||
615 | static void pci_sun4v_scan_bus(struct pci_pbm_info *pbm) | 615 | static void __init pci_sun4v_scan_bus(struct pci_pbm_info *pbm) |
616 | { | 616 | { |
617 | struct property *prop; | 617 | struct property *prop; |
618 | struct device_node *dp; | 618 | struct device_node *dp; |
@@ -960,7 +960,8 @@ static void pci_sun4v_msi_init(struct pci_pbm_info *pbm) | |||
960 | } | 960 | } |
961 | #endif /* !(CONFIG_PCI_MSI) */ | 961 | #endif /* !(CONFIG_PCI_MSI) */ |
962 | 962 | ||
963 | static void __init pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node *dp, u32 devhandle) | 963 | static void __init pci_sun4v_pbm_init(struct pci_controller_info *p, |
964 | struct device_node *dp, u32 devhandle) | ||
964 | { | 965 | { |
965 | struct pci_pbm_info *pbm; | 966 | struct pci_pbm_info *pbm; |
966 | 967 | ||