From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48CD9C33CB3 for ; Thu, 16 Jan 2020 18:02:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1BB27214AF for ; Thu, 16 Jan 2020 18:02:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579197720; bh=o5gPEcy6S1beDbI7ydtgK1Bj4YDqYXTv+xEShICgOHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=JP1/xLJ7t5BpScSZGUDj7Iq7ZhKGdnzg5vgoZPG4mVxxYwz5ekSzp7FuPHruEtbzc N3ELLVhlSzfAgW8Qndvtk2IzOSVyd+z5mi1ZiaMK5x+0dxxqxKHKd6sgrV5kVin5ZT UTj+AfV6sjyD8cxKaPNWJrEPDBOn6Hl/3X3ot0wc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405640AbgAPRlU (ORCPT ); Thu, 16 Jan 2020 12:41:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:57530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393267AbgAPRkX (ORCPT ); Thu, 16 Jan 2020 12:40:23 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7BC2E24730; Thu, 16 Jan 2020 17:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579196423; bh=o5gPEcy6S1beDbI7ydtgK1Bj4YDqYXTv+xEShICgOHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YvUjOYf4fE+gyEfpCzUNA9r4tTsqRsIJeqxzm41wP103b6v8gwpgCNgmnE/s6hFXt XjFsbDC1iNRjJ7e/+XKlPLkITnaBQZrylXU/vs7ek31zNItxQa/NLvAHBLmfDHq9rQ QgwJSzDJC2GzEfijezd6+Sv/mhbErtEmRbqq/PY0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Masami Hiramatsu , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH AUTOSEL 4.9 192/251] x86, perf: Fix the dependency of the x86 insn decoder selftest Date: Thu, 16 Jan 2020 12:35:41 -0500 Message-Id: <20200116173641.22137-152-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200116173641.22137-1-sashal@kernel.org> References: <20200116173641.22137-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masami Hiramatsu [ 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 --- arch/x86/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 4386440fe463..f09a192260f8 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -192,7 +192,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. -- 2.20.1