diff options
author | Alexander van Heukelum <heukelum@mailshack.com> | 2008-02-01 11:49:43 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-02-01 11:49:43 -0500 |
commit | d987402695f16ae33999d7315b915099d64616d4 (patch) | |
tree | b00856b58d688e0c981a0849ea509f82ead586df /arch | |
parent | 93809be8b140c101d27f00d0a622ebac90bc7a67 (diff) |
x86: avoid section mismatch involving arch_register_cpu
Avoid section mismatch involving arch_register_cpu.
Marking arch_register_cpu as __init and removing the export
for non-hotplug-cpu configurations makes the following warning
go away:
Section mismatch in reference from the function
arch_register_cpu() to the function .devinit.text:register_cpu()
The function arch_register_cpu() references
the function __devinit register_cpu().
This is often because arch_register_cpu lacks a __devinit
annotation or the annotation of register_cpu is wrong.
The only external user of arch_register_cpu in the tree is
in drivers/acpi/processor_core.c where it is guarded by
ACPI_HOTPLUG_CPU (which depends on HOTPLUG_CPU).
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
CC: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/topology.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index 78cbb655aa79..e6757aaa202b 100644 --- a/arch/x86/kernel/topology.c +++ b/arch/x86/kernel/topology.c | |||
@@ -57,11 +57,10 @@ void arch_unregister_cpu(int num) | |||
57 | } | 57 | } |
58 | EXPORT_SYMBOL(arch_unregister_cpu); | 58 | EXPORT_SYMBOL(arch_unregister_cpu); |
59 | #else | 59 | #else |
60 | int arch_register_cpu(int num) | 60 | static int __init arch_register_cpu(int num) |
61 | { | 61 | { |
62 | return register_cpu(&per_cpu(cpu_devices, num).cpu, num); | 62 | return register_cpu(&per_cpu(cpu_devices, num).cpu, num); |
63 | } | 63 | } |
64 | EXPORT_SYMBOL(arch_register_cpu); | ||
65 | #endif /*CONFIG_HOTPLUG_CPU*/ | 64 | #endif /*CONFIG_HOTPLUG_CPU*/ |
66 | 65 | ||
67 | static int __init topology_init(void) | 66 | static int __init topology_init(void) |