* [PATCH 2/4] i386: fix another modpost warning
@ 2007-01-03 11:34 Vivek Goyal
0 siblings, 0 replies; only message in thread
From: Vivek Goyal @ 2007-01-03 11:34 UTC (permalink / raw)
To: linux kernel mailing list
Cc: Fastboot mailing list, Morton Andrew Morton, Andi Kleen,
Eric W. Biederman, Sam Ravnborg
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 <vgoyal@in.ibm.com>
---
arch/i386/kernel/cpu/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN arch/i386/kernel/cpu/common.c~misc-vmlinux-modpost-warning-fixes arch/i386/kernel/cpu/common.c
--- linux-2.6.20-rc2-mm1-reloc/arch/i386/kernel/cpu/common.c~misc-vmlinux-modpost-warning-fixes 2007-01-03 11:56:49.000000000 +0530
+++ linux-2.6.20-rc2-mm1-reloc-root/arch/i386/kernel/cpu/common.c 2007-01-03 11:56:49.000000000 +0530
@@ -54,7 +54,7 @@ static struct cpu_dev __cpuinitdata defa
.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)
{
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-03 11:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-03 11:34 [PATCH 2/4] i386: fix another modpost warning Vivek Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®