* [PATCH 1/4] i386: Fix modpost warning in SMP trampoline code
@ 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.text:startup_32_smp
from .data between 'trampoline_data' (at offset 0xc0519cf8) and 'boot_gdt'
o trampoline code/data can go into init section is CPU hotplug is not
enabled.
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
---
arch/i386/kernel/trampoline.S | 5 +++++
1 file changed, 5 insertions(+)
diff -puN arch/i386/kernel/trampoline.S~i386-fix-modpost-warning-in-smp-trampoline-code arch/i386/kernel/trampoline.S
--- linux-2.6.20-rc2-mm1-reloc/arch/i386/kernel/trampoline.S~i386-fix-modpost-warning-in-smp-trampoline-code 2007-01-03 11:56:19.000000000 +0530
+++ linux-2.6.20-rc2-mm1-reloc-root/arch/i386/kernel/trampoline.S 2007-01-03 11:56:19.000000000 +0530
@@ -38,6 +38,11 @@
.data
+/* We can free up trampoline after bootup if cpu hotplug is not supported. */
+#ifndef CONFIG_HOTPLUG_CPU
+.section ".init.data","aw",@progbits
+#endif
+
.code16
ENTRY(trampoline_data)
_
^ 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 1/4] i386: Fix modpost warning in SMP trampoline code Vivek Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox