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=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 4EFA2C35242 for ; Fri, 24 Jan 2020 11:30:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D87E21556 for ; Fri, 24 Jan 2020 11:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865435; bh=cF4ecgFVd8/JKvsem/rvegsEBqwsJLZW8Ycihbf89Q8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=00w2QaKtw3+qyPPTv4ICDN3DRKu5jJJxew+5G8ZhU7VR7duoZxEH7WfEpJLzAVRU6 MpsLzxVHyUiVkHnwJH0WuwN4h34iTphEY3YhqS/BtqEC4CMWxsfXC8ULOCI/jJGCxL sZaItZD0gCLroOP1BbEEhnoq6tjwL5pVv/SuXlzg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404247AbgAXLad (ORCPT ); Fri, 24 Jan 2020 06:30:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:48244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404008AbgAXLab (ORCPT ); Fri, 24 Jan 2020 06:30:31 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85BA32077C; Fri, 24 Jan 2020 11:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865431; bh=cF4ecgFVd8/JKvsem/rvegsEBqwsJLZW8Ycihbf89Q8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y1hm20FdWTbvKrv56LOl4jxcgd4S3X1CMgTcvO2L3DGUDHkyOdITN0dk5n6ULUMh1 pQ1iVDjdU/1Ve21dxfs4p+G48cd111MGEUStW0O0UqiUOxfIXbbxXkI9fbFWwcrNty aXVMHxoAp8jG5w3SYQraky1mZyViemsJljIdLUK8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH 4.19 531/639] x86, perf: Fix the dependency of the x86 insn decoder selftest Date: Fri, 24 Jan 2020 10:31:41 +0100 Message-Id: <20200124093155.376294255@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 7d68f0c7cfb1e..687cd1a213d50 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. -- 2.20.1