| From | Andi Kleen <> | Subject | [PATCH x86] [16/16] Mark memory_setup __init | Date | Thu, 3 Jan 2008 16:42:30 +0100 (CET) |
| |
Otherwise
WARNING: vmlinux.o(.text+0x64a9): Section mismatch: reference to .init.text:machine_specific_memory_setup (between 'memory_setup' and 'show_cpuinfo')
Signed-off-by: Andi Kleen <ak@suse.de>
--- arch/x86/kernel/setup_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux/arch/x86/kernel/setup_64.c =================================================================== --- linux.orig/arch/x86/kernel/setup_64.c +++ linux/arch/x86/kernel/setup_64.c @@ -244,7 +244,7 @@ static inline void __init reserve_crashk #endif /* Overridden in paravirt.c if CONFIG_PARAVIRT */ -void __attribute__((weak)) memory_setup(void) +void __attribute__((weak)) __init memory_setup(void) { machine_specific_memory_setup(); }
|