Skip to content

Commit

Permalink
x86: discover_ebda section mismatch
Browse files Browse the repository at this point in the history
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 <randy.dunlap@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Randy Dunlap authored and Ingo Molnar committed Jan 30, 2008
1 parent 9d09951 commit d504e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d504e39

Please sign in to comment.