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=ham 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 2DE40C33CAF for ; Thu, 16 Jan 2020 18:17:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 072AA20730 for ; Thu, 16 Jan 2020 18:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579198649; bh=gJVeQ/nuAWdsbIyI3ljupV6AESIo3Dx9Ara2noFtTlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=cESOdxKI83gmdC89AN1IsVMEtQ6lFt0xz/nSkWPtE0lxVkFU5WUHk1bAsz9pGe22G Ws7WeVyTgHVWMurcm9n5yhjoLC0p2/t9tjt5gNqK9RqLOCywpeza4G39pl1hyjWBfa Eiszb96vVkNuORIDpGcYMnGwhy8YMYoU+5m2pJII= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436546AbgAPSR2 (ORCPT ); Thu, 16 Jan 2020 13:17:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:40840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404288AbgAPR3J (ORCPT ); Thu, 16 Jan 2020 12:29:09 -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 65319246F8; Thu, 16 Jan 2020 17:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579195749; bh=gJVeQ/nuAWdsbIyI3ljupV6AESIo3Dx9Ara2noFtTlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fvys3RHw6d3aO/+OfkzxT2XWzqoGj4vJ8lM0GvHqk3efKNjDdSfq3nyoPl1KNU+c9 9c70ORUcthnQh61woGtM3re9rPqfUqKi+ieXnN54NXK+yHNuUA7O4d8+g5FfXjSYTf Zk5UhV7VUb1ShRyveh10SIhdEfJD4Q1dOPoHzz0g= 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.14 282/371] x86, perf: Fix the dependency of the x86 insn decoder selftest Date: Thu, 16 Jan 2020 12:22:34 -0500 Message-Id: <20200116172403.18149-225-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200116172403.18149-1-sashal@kernel.org> References: <20200116172403.18149-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 6293a8768a91..bec0952c5595 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -189,7 +189,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