提交 77be80e4 编写于 作者: R Richard A. Holden III 提交者: Ingo Molnar

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: NRichard A. Holden III <aciddeath@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 fbc2a060
...@@ -400,6 +400,7 @@ static void __cpuinit uv_heartbeat_enable(int cpu) ...@@ -400,6 +400,7 @@ static void __cpuinit uv_heartbeat_enable(int cpu)
uv_heartbeat_enable(0); uv_heartbeat_enable(0);
} }
#ifdef CONFIG_HOTPLUG_CPU
static void __cpuinit uv_heartbeat_disable(int cpu) static void __cpuinit uv_heartbeat_disable(int cpu)
{ {
if (uv_cpu_hub_info(cpu)->scir.enabled) { if (uv_cpu_hub_info(cpu)->scir.enabled) {
...@@ -409,7 +410,6 @@ static void __cpuinit uv_heartbeat_disable(int cpu) ...@@ -409,7 +410,6 @@ static void __cpuinit uv_heartbeat_disable(int cpu)
uv_set_cpu_scir_bits(cpu, 0xff); uv_set_cpu_scir_bits(cpu, 0xff);
} }
#ifdef CONFIG_HOTPLUG_CPU
/* /*
* cpu hotplug notifier * cpu hotplug notifier
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册