Skip to content

Commit

Permalink
x86: fix section mismatch warning in topology.c:arch_register_cpu
Browse files Browse the repository at this point in the history
arch_register_cpu() is only defined for HOTPLUG_CPU code
so simple fix is to ignore references by annotating the
function __ref.

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 04d733b commit 177c771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
static DEFINE_PER_CPU(struct x86_cpu, cpu_devices);

#ifdef CONFIG_HOTPLUG_CPU
int arch_register_cpu(int num)
int __ref arch_register_cpu(int num)
{
/*
* CPU0 cannot be offlined due to several
Expand Down

0 comments on commit 177c771

Please sign in to comment.