aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_64.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-01-30 07:33:37 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:37 -0500
commitadb8daed46356d1772e8bd8def1b70c8cb58ce12 (patch)
tree2c62f600a9098de8d97228fe4d3ba5ee7ac2d8d4 /arch/x86/kernel/setup_64.c
parent3eaf5efae72b33bc6132e9590e5d4bf11532f8c4 (diff)
x86: fix section mismatch warning in setup_64.c
Fix the following warning: WARNING: arch/x86/kernel/built-in.o(.cpuinit.text+0x7a3): Section mismatch: reference to .init.text:amd_detect_cmp in 'init_amd' The function amd_detect_cmp were annotated __init and was only used from init_amd() which are annotated __cpuinit. Annotate amd_detect_cmp() with _cpuinit to fix it. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r--arch/x86/kernel/setup_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index 9ee2bc30d530..c9b7f44ea497 100644
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -530,7 +530,7 @@ static int nearby_node(int apicid)
530 * On a AMD dual core setup the lower bits of the APIC id distingush the cores. 530 * On a AMD dual core setup the lower bits of the APIC id distingush the cores.
531 * Assumes number of cores is a power of two. 531 * Assumes number of cores is a power of two.
532 */ 532 */
533static void __init amd_detect_cmp(struct cpuinfo_x86 *c) 533static void __cpuinit amd_detect_cmp(struct cpuinfo_x86 *c)
534{ 534{
535#ifdef CONFIG_SMP 535#ifdef CONFIG_SMP
536 unsigned bits; 536 unsigned bits;