Skip to content

Commit

Permalink
x86: mark memory_setup __init
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Jan 30, 2008
1 parent a9a8329 commit e3cfac8
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 @@ -279,7 +279,7 @@ static void discover_ebda(void)
}

/* Overridden in paravirt.c if CONFIG_PARAVIRT */
void __attribute__((weak)) memory_setup(void)
void __attribute__((weak)) __init memory_setup(void)
{
machine_specific_memory_setup();
}
Expand Down

0 comments on commit e3cfac8

Please sign in to comment.