diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2007-01-05 19:36:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-06 02:55:23 -0500 |
commit | 1119a33a962077570ab0c2ef4712c0e48acfc577 (patch) | |
tree | 1c1c858f73abeed3d05b76dfe90e3d64c8751dc6 /arch/i386/kernel | |
parent | 9ab37b8f21b4dfe256d736c13738d20c88a1f3ad (diff) |
[PATCH] i386: fix modpost warning in SMP trampoline code
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>
Cc: Andi Kleen <ak@suse.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/trampoline.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/i386/kernel/trampoline.S b/arch/i386/kernel/trampoline.S index fcce0e61b0e7..2f1814c5cfd7 100644 --- a/arch/i386/kernel/trampoline.S +++ b/arch/i386/kernel/trampoline.S | |||
@@ -38,6 +38,11 @@ | |||
38 | 38 | ||
39 | .data | 39 | .data |
40 | 40 | ||
41 | /* We can free up trampoline after bootup if cpu hotplug is not supported. */ | ||
42 | #ifndef CONFIG_HOTPLUG_CPU | ||
43 | .section ".init.data","aw",@progbits | ||
44 | #endif | ||
45 | |||
41 | .code16 | 46 | .code16 |
42 | 47 | ||
43 | ENTRY(trampoline_data) | 48 | ENTRY(trampoline_data) |