Alchemy: fix modpost warning
PATCH 1/1 Alchemy: fix modpost warning
WARNING: vmlinux.o(.text+0x1ca608): Section mismatch: reference to .init.text:add_wired_entry (between 'config_access' and 'config_read')
by refactoring the code calling add_wired_entry() from config_access() to a separate function which is called from aau1x_pci_setup(). While at it:
- make some unnecassarily global variables 'static';
- fix the letter case, whitespace, etc. in the comments...
arch/mips/au1000/common/pci.c | 8 ++++-- arch/mips/pci/ops-au1000.c | 53 ++++++++++++++++++++---------------------- 2 files changed, 32 insertions(+), 29 deletions(-)
arch/mips/au1000/common/pci.c +6 -2
@@ -1,8 +1,8 @@/* * BRIEF MODULE DESCRIPTION -* Alchemy/AMD Au1x00 pci support. +* Alchemy/AMD Au1x00 PCI support. * -* Copyright 2001,2002,2003 MontaVista Software Inc. +* Copyright 2001-2003, 2007 MontaVista Software Inc. * Author: MontaVista Software, Inc. * [email protected] or [email protected] *
@@ -66,6 +66,8 @@ static unsigned long virt_io_addr;static int __init au1x_pci_setup (void ) { +extern void au1x_pci_cfg_init (void ); +#if defined(CONFIG_SOC_AU1500 ) || defined(CONFIG_SOC_AU1550 ) virt_io_addr = (unsigned long )ioremap (Au1500_PCI_IO_START, Au1500_PCI_IO_END - Au1500_PCI_IO_START +1 );
@@ -94,6 +96,8 @@ static int __init au1x_pci_setup(void)set_io_port_base (virt_io_addr);#endif +au1x_pci_cfg_init (); +register_pci_controller (&au1x_controller);return 0 ; }
arch/mips/pci/ops-au1000.c +26 -27
80 lines not on this page · raw message
Ralf Baechle
AppliedQuoted 11 lines · Sergei Shtylyov
WARNING:
vmlinux.o(.text+0x1ca608): Section mismatch: reference to .init.text:add_wired_entry(between 'config_access' and 'config_read')by refactoring the code calling
add_wired_entry()fromconfig_access()to a separate function which is called fromaau1x_pci_setup(). While at it:- make some unnecassarily global variables 'static';
- fix the letter case, whitespace, etc. in the comments...
Signed-off-by Sergei Shtylyov <[email protected]>
Applied. Thanks,
Ralf