x86: Fix a section mismatch in arch/x86/kernel/setup.c
commit9eaa192d8988d621217a9e6071cd403fd6010496
authorHelight.Xu <helight.xu@gmail.com>
Mon, 30 Nov 2009 10:33:51 +0000 (30 18:33 +0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 30 Nov 2009 19:16:49 +0000 (30 11:16 -0800)
treecd7cc0a27b5a063270a431053fb871ced84b0cba
parent6dbfe5a57db3564adf7b2a65068e40f1b4a0d2db
x86: Fix a section mismatch in arch/x86/kernel/setup.c

copy_edd() should be __init.
warning msg:
WARNING: vmlinux.o(.text+0x7759): Section mismatch in reference from the
function copy_edd() to the variable .init.data:boot_params
The function copy_edd() references
the variable __initdata boot_params.
This is often because copy_edd lacks a __initdata
annotation or the annotation of boot_params is wrong.

Signed-off-by: ZhenwenXu <helight.xu@gmail.com>
LKML-Reference: <4B139F8F.4000907@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/setup.c