summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/topology.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-02-17 13:22:49 +0100
committerIngo Molnar <mingo@elte.hu>2008-02-19 16:18:30 +0100
commit177c7715cd94a66d951fcafbacedd278a2d6fcab (patch)
tree234b14c6484916aa35c7c28066232bec9e9d9501 /arch/x86/kernel/topology.c
parent04d733bd3588fda8934591fdb0a3d719c5ec8fa0 (diff)
downloadblackbird-op-linux-177c7715cd94a66d951fcafbacedd278a2d6fcab.tar.gz
blackbird-op-linux-177c7715cd94a66d951fcafbacedd278a2d6fcab.zip
x86: fix section mismatch warning in topology.c:arch_register_cpu
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>
Diffstat (limited to 'arch/x86/kernel/topology.c')
-rw-r--r--arch/x86/kernel/topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c
index a40051b71d9b..0fcc95a354f7 100644
--- a/arch/x86/kernel/topology.c
+++ b/arch/x86/kernel/topology.c
@@ -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
OpenPOWER on IntegriCloud