* [PATCH -tip] trace,x86: Add config option checking to definitions of mce handlers
@ 2013-06-22 11:33 Seiji Aguchi
2013-06-23 11:01 ` [tip:x86/trace] x86/tracing: Add config option checking to the " tip-bot for Seiji Aguchi
0 siblings, 1 reply; 2+ messages in thread
From: Seiji Aguchi @ 2013-06-22 11:33 UTC (permalink / raw)
To: x86, linux-kernel, hpa; +Cc: mingo, tglx, rostedt
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>
---
arch/x86/kernel/entry_64.S | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index 11eef43..53d6398 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -1188,10 +1188,15 @@ apicinterrupt3 POSTED_INTR_VECTOR \
kvm_posted_intr_ipi smp_kvm_posted_intr_ipi
#endif
+#ifdef CONFIG_X86_MCE_THRESHOLD
apicinterrupt THRESHOLD_APIC_VECTOR \
threshold_interrupt smp_threshold_interrupt
+#endif
+
+#ifdef CONFIG_X86_THERMAL_VECTOR
apicinterrupt THERMAL_APIC_VECTOR \
thermal_interrupt smp_thermal_interrupt
+#endif
#ifdef CONFIG_SMP
apicinterrupt CALL_FUNCTION_SINGLE_VECTOR \
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:x86/trace] x86/tracing: Add config option checking to the definitions of mce handlers
2013-06-22 11:33 [PATCH -tip] trace,x86: Add config option checking to definitions of mce handlers Seiji Aguchi
@ 2013-06-23 11:01 ` tip-bot for Seiji Aguchi
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Seiji Aguchi @ 2013-06-23 11:01 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, seiji.aguchi, tglx
Commit-ID: 33e5ff634f07dec26b7ed1fd7f9e32978fe1f2b2
Gitweb: http://git.kernel.org/tip/33e5ff634f07dec26b7ed1fd7f9e32978fe1f2b2
Author: Seiji Aguchi <seiji.aguchi@hds.com>
AuthorDate: Sat, 22 Jun 2013 07:33:30 -0400
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Sun, 23 Jun 2013 11:41:36 +0200
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 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index 11eef43..53d6398 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -1188,10 +1188,15 @@ apicinterrupt3 POSTED_INTR_VECTOR \
kvm_posted_intr_ipi smp_kvm_posted_intr_ipi
#endif
+#ifdef CONFIG_X86_MCE_THRESHOLD
apicinterrupt THRESHOLD_APIC_VECTOR \
threshold_interrupt smp_threshold_interrupt
+#endif
+
+#ifdef CONFIG_X86_THERMAL_VECTOR
apicinterrupt THERMAL_APIC_VECTOR \
thermal_interrupt smp_thermal_interrupt
+#endif
#ifdef CONFIG_SMP
apicinterrupt CALL_FUNCTION_SINGLE_VECTOR \
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-23 11:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-22 11:33 [PATCH -tip] trace,x86: Add config option checking to definitions of mce handlers Seiji Aguchi
2013-06-23 11:01 ` [tip:x86/trace] x86/tracing: Add config option checking to the " tip-bot for Seiji Aguchi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.