diff options
author | Richard A. Holden III <aciddeath@gmail.com> | 2008-11-19 18:05:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-20 03:03:04 -0500 |
commit | 77be80e437fec44f8b7a620314b7d7b605b8d93b (patch) | |
tree | bd0f0a97013440a47d931d02ec47d114355b9eaf /arch | |
parent | fbc2a06056c9aa3cb8c44bf1cfeb1d260e229e5c (diff) |
x86: fix arch/x86/kernel/genx2apic_uv_x.c build warning when !CONFIG_HOTPLUG_CPU
Impact: cleanup, reduce size of the kernel image a bit
Fix:
arch/x86/kernel/genx2apic_uv_x.c:403: warning: 'uv_heartbeat_disable' defined but not used
the function is only used when CONFIG_HOTPLUG_CPU is defined.
Signed-off-by: Richard A. Holden III <aciddeath@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/genx2apic_uv_x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c index f02bbe5d0178..221299f4509f 100644 --- a/arch/x86/kernel/genx2apic_uv_x.c +++ b/arch/x86/kernel/genx2apic_uv_x.c | |||
@@ -400,6 +400,7 @@ static void __cpuinit uv_heartbeat_enable(int cpu) | |||
400 | uv_heartbeat_enable(0); | 400 | uv_heartbeat_enable(0); |
401 | } | 401 | } |
402 | 402 | ||
403 | #ifdef CONFIG_HOTPLUG_CPU | ||
403 | static void __cpuinit uv_heartbeat_disable(int cpu) | 404 | static void __cpuinit uv_heartbeat_disable(int cpu) |
404 | { | 405 | { |
405 | if (uv_cpu_hub_info(cpu)->scir.enabled) { | 406 | if (uv_cpu_hub_info(cpu)->scir.enabled) { |
@@ -409,7 +410,6 @@ static void __cpuinit uv_heartbeat_disable(int cpu) | |||
409 | uv_set_cpu_scir_bits(cpu, 0xff); | 410 | uv_set_cpu_scir_bits(cpu, 0xff); |
410 | } | 411 | } |
411 | 412 | ||
412 | #ifdef CONFIG_HOTPLUG_CPU | ||
413 | /* | 413 | /* |
414 | * cpu hotplug notifier | 414 | * cpu hotplug notifier |
415 | */ | 415 | */ |