From: Vivek Goyal Date: Sat, 6 Jan 2007 00:36:34 +0000 (-0800) Subject: [PATCH] i386: fix another modpost warning X-Git-Tag: v2.6.20-rc4~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9dbeeec91e8f4a200ac56af5004473fa6099520f;p=platform%2Fkernel%2Flinux-stable.git [PATCH] i386: fix another modpost warning o MODPOST generates warning for i386 if kernel is compiled with CONFIG_RELOCATABLE=y WARNING: vmlinux - Section mismatch: reference to .init.data: from .data between 'this_cpu' (at offset 0xc05194d0) and 'cpuinfo_op' o this_cpu pointer should be of type __cpuinitdata. Signed-off-by: Vivek Goyal Cc: Andi Kleen Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c index 1b34c56..8689d62 100644 --- a/arch/i386/kernel/cpu/common.c +++ b/arch/i386/kernel/cpu/common.c @@ -54,7 +54,7 @@ static struct cpu_dev __cpuinitdata default_cpu = { .c_init = default_init, .c_vendor = "Unknown", }; -static struct cpu_dev * this_cpu = &default_cpu; +static struct cpu_dev * this_cpu __cpuinitdata = &default_cpu; static int __init cachesize_setup(char *str) {