Skip to content

Commit

Permalink
x86: fix arch/x86/kernel/genx2apic_uv_x.c build warning when !CONFIG_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Richard A. Holden III authored and Ingo Molnar committed Nov 20, 2008
1 parent fbc2a06 commit 77be80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/genx2apic_uv_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
*/
Expand Down

0 comments on commit 77be80e

Please sign in to comment.