From: Randy Dunlap Date: Wed, 30 Jan 2008 12:33:05 +0000 (+0100) Subject: x86: discover_ebda section mismatch X-Git-Tag: v2.6.25-rc1~1143^2~320 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d504e39efd4e64a1a6e01dc85fd8a33fdb196dce;p=linux-2.6-omap-h63xx.git x86: discover_ebda section mismatch Fix section mismatches. discover_ebda() can be __init. WARNING: vmlinux.o(.text+0x738a): Section mismatch: reference to .init.data:ebda_addr (between 'discover_ebda' and 'get_model_name') WARNING: vmlinux.o(.text+0x73c4): Section mismatch: reference to .init.data:ebda_size (between 'discover_ebda' and 'get_model_name') Signed-off-by: Randy Dunlap Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index a7124bfb857..07547febac7 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c @@ -248,7 +248,7 @@ static inline void __init reserve_crashkernel(void) unsigned __initdata ebda_addr; unsigned __initdata ebda_size; -static void discover_ebda(void) +static void __init discover_ebda(void) { /* * there is a real-mode segmented pointer pointing to the