diff options
author | Jacek Luczak <difrost.kernel@gmail.com> | 2008-04-10 15:16:41 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:37 -0400 |
commit | e223f162a1d37aeeaa6c1ee37d81cc084aa2b004 (patch) | |
tree | 63abd73bcbe7cdd3ee758929cfa3da12e277486b /arch/x86/kernel/trampoline_64.S | |
parent | df96323dfaebdf7e17cdf0656096e6ab2158ec76 (diff) |
x86: setup_trampoline() - fix section mismatch warning
this patch fixes section mismatch warnings (on x86_64 host) in setup_trampoline(),
which was referencing __initdata variables trampoline_data and trampoline_end.
Warning messages:
WARNING: arch/x86/kernel/built-in.o(.cpuinit.text+0x2b6a): Section mismatch in reference from the function setup_trampoline()
to the variable .init.data:trampoline_data
The function __cpuinit setup_trampoline() references
a variable __initdata trampoline_data.
If trampoline_data is only used by setup_trampoline then
annotate trampoline_data with a matching annotation.
WARNING: arch/x86/kernel/built-in.o(.cpuinit.text+0x2b71): Section mismatch in reference from the function setup_trampoline()
to the variable .init.data:trampoline_end
The function __cpuinit setup_trampoline() references
a variable __initdata trampoline_end.
If trampoline_end is only used by setup_trampoline then
annotate trampoline_end with a matching annotation.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/trampoline_64.S')
-rw-r--r-- | arch/x86/kernel/trampoline_64.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/trampoline_64.S b/arch/x86/kernel/trampoline_64.S index 4aedd0bcee4c..2a07e67d6697 100644 --- a/arch/x86/kernel/trampoline_64.S +++ b/arch/x86/kernel/trampoline_64.S | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | /* We can free up trampoline after bootup if cpu hotplug is not supported. */ | 33 | /* We can free up trampoline after bootup if cpu hotplug is not supported. */ |
34 | #ifndef CONFIG_HOTPLUG_CPU | 34 | #ifndef CONFIG_HOTPLUG_CPU |
35 | .section .init.data, "aw", @progbits | 35 | .section .cpuinit.data, "aw", @progbits |
36 | #else | 36 | #else |
37 | .section .rodata, "a", @progbits | 37 | .section .rodata, "a", @progbits |
38 | #endif | 38 | #endif |