x86: fix MP_processor_info section mismatch warning
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 10 Aug 2008 22:12:37 +0000 (00:12 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 11 Aug 2008 04:13:07 +0000 (21:13 -0700)
commit85a14437ed24244c78f9a70d58b8299753b03c92
tree117a5ecfe2320a52b53f6ef61d8c0598ab88a35f
parent90936cfe6c8f7e90a6f8b0c5cb44d3a012dfd313
x86: fix MP_processor_info section mismatch warning

WARNING: arch/x86/kernel/built-in.o(.cpuinit.text+0x1fe7): Section mismatch in reference from the function MP_processor_info() to the variable .init.data:x86_quirks
The function __cpuinit MP_processor_info() references
a variable __initdata x86_quirks.
If x86_quirks is only used by MP_processor_info then
annotate x86_quirks with a matching annotation.

MP_processor_info uses x86_quirks which is __init and is used only from
smp_read_mpc and construct_default_ISA_mptable which are __init

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/mpparse.c