Skip to content

Commit

Permalink
x86: fix section mismatch in head_64.S:initial_code
Browse files Browse the repository at this point in the history
initial_code are initially used to hold a function pointer
from __init and later from __cpuinit. This confuses modpost
and changing initial_code to REFDATA silence the warning.
(But now we do not discard the variable anymore).

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Sam Ravnborg authored and Ingo Molnar committed Feb 19, 2008
1 parent d01b9ad commit da5968a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ ENTRY(secondary_startup_64)
lretq

/* SMP bootup changes these two */
__CPUINITDATA
__REFDATA
.align 8
ENTRY(initial_code)
.quad x86_64_start_kernel
Expand Down

0 comments on commit da5968a

Please sign in to comment.