From patchwork Mon May 28 09:22:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 137046 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2592420lji; Mon, 28 May 2018 02:25:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoPOqQliNQSnS38NTyx4fgxsaDyv6X668T9m3Ew7TJgFecdqRKvr4/Jkx95Tq+6jPhQGT0K X-Received: by 2002:a63:61d6:: with SMTP id v205-v6mr9951805pgb.432.1527499512838; Mon, 28 May 2018 02:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527499512; cv=none; d=google.com; s=arc-20160816; b=uBMhByTbYoBwrEjmtbnsu0A5bbXAtqOVcg9nvPX7yU0hrLh5Vbw8b4eMXlJvxFi3ln Og10n8D3UcWjUlWlY0Jul+xSBLiTlfAaUZ1HtAPpNU2WME5KYA7itlPE5lDaluevHMAB WwQdr4zYM9QTVehmqmY2ixOTyyfNpqOj4cXcuvAF6A/D1WH4f08/OKJ2c0fSbRzUO1gR muY6rugN78kxdxQ6FA1O8ptS844RSpX6Sh9diezbox43aqu0rYnQP0urprR/FQt52eds 5BBtxmBzyldFs+Babgq2yewCXNleP4qnjokM/gwzen4jkr/AkX006C/nZfVfohYbhYoz iyPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=JoiwlMoDhFMQuLdtUxJL/dDvBCxUTt0wM/d0IzvUjp4=; b=09zNeDCNDfKBxDs/DqxIQTN2+azCGOA8drse0sQQmZro8Mv8uMNxYzKMqcBI8i2pAP m1M2Ns/ltj/RBH/dR0a0aCIytuhM7JncRk6lCIqaYC9wmE5qMA/I92H8Q/BYnqb+fsqm GSIR1eryC4t/O2Eagt5tSKrQt0x9jMTzfdX+cTaMW0kCgpHITBaLNrYwqYzDLR+ptiYP muIDvibvjIsJpOtKRyDTqGn1rR6XN2RCG9aKhwtnQXnF97dj+Udbt1sCQ/FPwQxXSgl4 VKM/bKPdFM2rqtF1klvvR+zT8WYiQyqoHLpJtoDb4io9EurcVFc7sLUlUJq6KKAGNA1K kf+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=TeMeasUC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q200-v6si11556680pgq.682.2018.05.28.02.25.12; Mon, 28 May 2018 02:25:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=TeMeasUC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933718AbeE1JZK (ORCPT + 30 others); Mon, 28 May 2018 05:25:10 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:22994 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933515AbeE1JZD (ORCPT ); Mon, 28 May 2018 05:25:03 -0400 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-10.nifty.com with ESMTP id w4S9MInl027506; Mon, 28 May 2018 18:22:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w4S9MInl027506 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1527499364; bh=JoiwlMoDhFMQuLdtUxJL/dDvBCxUTt0wM/d0IzvUjp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TeMeasUCtiyLpLwroDrSHh1xoD7bC1FXUmRSuzA1ZI1fa+qzzL9dbPlkLnvBc1gm3 sOpOo2vb/ASRdzssePCBQS+HoobZznPgaYwtQ4JdkBwa8M4hENVeDJjk8YvmxQzS4J f9U9rEj42fZnDVMggucp6B9zoBN1E9PzhUyoE2reL8IZ+fvCsxBzvG2Gtv/0fAfBKA e6M17cXATr5Nxd2v7Hb+BKpD7WePqqSylEmejmuoDvfYo4d4Dqu9vEujLtQd8DP6ek 9EoGZFq5Yd9L210t22xsVFxG3fPKsVb1YQESQNxUSMpAdyCqs2T7IFUw3HX/GoxNNk TSfc8nnsYQ+aQ== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Kees Cook , Nicholas Piggin , "Luis R . Rodriguez" , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Linus Torvalds , Masahiro Yamada Subject: [PATCH v5 30/31] gcc-plugins: allow to enable GCC_PLUGINS for COMPILE_TEST Date: Mon, 28 May 2018 18:22:07 +0900 Message-Id: <1527499328-13213-31-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527499328-13213-1-git-send-email-yamada.masahiro@socionext.com> References: <1527499328-13213-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the compiler's plugin support is checked in Kconfig, all{yes,mod}config will not be bothered. Remove 'depends on !COMPILE_TEST' for GCC_PLUGINS. 'depends on !COMPILE_TEST' for the following three are still kept: GCC_PLUGIN_CYC_COMPLEXITY GCC_PLUGIN_STRUCTLEAK_VERBOSE GCC_PLUGIN_RANDSTRUCT_PERFORMANCE Kees suggested to do so because the first two are too noisy, and the last one would reduce the compile test coverage. I commented the reasons in arch/Kconfig. Signed-off-by: Masahiro Yamada Acked-by: Kees Cook --- Changes in v5: None Changes in v4: None Changes in v3: - Add comment about reason Changes in v2: None arch/Kconfig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/arch/Kconfig b/arch/Kconfig index 6051386..e9475d0 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -420,7 +420,6 @@ menuconfig GCC_PLUGINS bool "GCC plugins" depends on HAVE_GCC_PLUGINS depends on PLUGIN_HOSTCC != "" - depends on !COMPILE_TEST help GCC plugins are loadable modules that provide extra features to the compiler. They are useful for runtime instrumentation and static analysis. @@ -430,7 +429,7 @@ menuconfig GCC_PLUGINS config GCC_PLUGIN_CYC_COMPLEXITY bool "Compute the cyclomatic complexity of a function" if EXPERT depends on GCC_PLUGINS - depends on !COMPILE_TEST + depends on !COMPILE_TEST # too noisy help The complexity M of a function's control flow graph is defined as: M = E - N + 2P @@ -497,7 +496,7 @@ config GCC_PLUGIN_STRUCTLEAK_BYREF_ALL config GCC_PLUGIN_STRUCTLEAK_VERBOSE bool "Report forcefully initialized variables" depends on GCC_PLUGIN_STRUCTLEAK - depends on !COMPILE_TEST + depends on !COMPILE_TEST # too noisy help This option will cause a warning to be printed each time the structleak plugin finds a variable it thinks needs to be @@ -537,7 +536,7 @@ config GCC_PLUGIN_RANDSTRUCT config GCC_PLUGIN_RANDSTRUCT_PERFORMANCE bool "Use cacheline-aware structure randomization" depends on GCC_PLUGIN_RANDSTRUCT - depends on !COMPILE_TEST + depends on !COMPILE_TEST # do not reduce test coverage help If you say Y here, the RANDSTRUCT randomization will make a best effort at restricting randomization to cacheline-sized