x86: fix arch/x86/kernel/genx2apic_uv_x.c build warning when !CONFIG_HOTPLUG_CPU
authorRichard A. Holden III <aciddeath@gmail.com>
Wed, 19 Nov 2008 23:05:14 +0000 (16:05 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 20 Nov 2008 08:03:04 +0000 (09:03 +0100)
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>
arch/x86/kernel/genx2apic_uv_x.c

index f02bbe5d0178d4dc8d7f1e86eb03ad87e7e92807..221299f4509f5ec6e2e545eaf7841c1cdb093149 100644 (file)
@@ -400,6 +400,7 @@ static void __cpuinit uv_heartbeat_enable(int cpu)
                uv_heartbeat_enable(0);
 }
 
+#ifdef CONFIG_HOTPLUG_CPU
 static void __cpuinit uv_heartbeat_disable(int cpu)
 {
        if (uv_cpu_hub_info(cpu)->scir.enabled) {
@@ -409,7 +410,6 @@ static void __cpuinit uv_heartbeat_disable(int cpu)
        uv_set_cpu_scir_bits(cpu, 0xff);
 }
 
-#ifdef CONFIG_HOTPLUG_CPU
 /*
  * cpu hotplug notifier
  */