x86/tracing: Add config option checking to the definitions of mce handlers
authorSeiji Aguchi <seiji.aguchi@hds.com>
Sat, 22 Jun 2013 11:33:30 +0000 (07:33 -0400)
committerIngo Molnar <mingo@kernel.org>
Sun, 23 Jun 2013 09:41:36 +0000 (11:41 +0200)
commit33e5ff634f07dec26b7ed1fd7f9e32978fe1f2b2
tree8d29f6c7eb6343ac1a9b202b3346af321a18386b
parent83ab85140bc1492f92de263a1c30ea04a0f465f7
x86/tracing: Add config option checking to the definitions of mce handlers

In case CONFIG_X86_MCE_THRESHOLD and CONFIG_X86_THERMAL_VECTOR
are disabled, kernel build fails as follows.

   arch/x86/built-in.o: In function `trace_threshold_interrupt':
   (.entry.text+0x122b): undefined reference to `smp_trace_threshold_interrupt'
   arch/x86/built-in.o: In function `trace_thermal_interrupt':
   (.entry.text+0x132b): undefined reference to `smp_trace_thermal_interrupt'

In this case, trace_threshold_interrupt/trace_thermal_interrupt
are not needed to define.

So, add config option checking to their definitions in entry_64.S.

Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Cc: rostedt@goodmis.org
Link: http://lkml.kernel.org/r/51C58B8A.2080808@hds.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/entry_64.S