From: Masami Hiramatsu Date: Sun, 1 Sep 2019 03:03:08 +0000 (+0900) Subject: x86, perf: Fix the dependency of the x86 insn decoder selftest X-Git-Tag: v4.19.99~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b686bc28e5747072766cc6c489a3c2f7a0c1581f;p=platform%2Fkernel%2Flinux-rpi.git x86, perf: Fix the dependency of the x86 insn decoder selftest [ Upstream commit 7720804a2ae46c90265a32c81c45fb6f8d2f4e8b ] Since x86 instruction decoder is not only for kprobes, it should be tested when the insn.c is compiled. (e.g. perf is enabled but kprobes is disabled) Signed-off-by: Masami Hiramatsu Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Fixes: cbe5c34c8c1f ("x86: Compile insn.c and inat.c only for KPROBES") Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 7d68f0c..687cd1a 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -181,7 +181,7 @@ config HAVE_MMIOTRACE_SUPPORT config X86_DECODER_SELFTEST bool "x86 instruction decoder selftest" - depends on DEBUG_KERNEL && KPROBES + depends on DEBUG_KERNEL && INSTRUCTION_DECODER depends on !COMPILE_TEST ---help--- Perform x86 instruction decoder selftests at build time.