dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Sam Ravnborg 2008-02-17 13:22:49 +01:00 committed by Ingo Molnar
parent 04d733bd35
commit 177c7715cd
1 changed files with 1 additions and 1 deletions

View File

@ -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