mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
x86: mark memory_setup __init
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>
This commit is contained in:
parent
a9a832902f
commit
e3cfac84cf
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user