Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2141231imm; Mon, 28 May 2018 02:27:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr+zzL8edhhpCMvkxLntdoplRX/mvKDSdGV8u2l7xgvkkyKDRTZV30Lfcd2Auq3TV9IklHU X-Received: by 2002:a62:850f:: with SMTP id u15-v6mr12690698pfd.160.1527499624680; Mon, 28 May 2018 02:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527499624; cv=none; d=google.com; s=arc-20160816; b=MM6iMiebgUCZwGvF42WzBxjPE8JcAHsW9RJo2tf8xcyY60Xn1uMl6SHVv3dq8tyMy4 DOUcBfRHyoy6xnm1W1E0wNa/54tZyTzYe1uJEmfUUozgJXfB8vmyAScL9thFLNRuif/t lCQc3q3m20oyDRQxA1OO4bJ83HRJm7MS/Vcyr0FS/FNFh1/Rp0hlaxRodNQZ5xMjgIvY I3pcAHQJzMv3gFR6SGyzetjlOIynIZoduoxFpAi2K5wjUZZggKZcq8wmTD66QKGSPeiC Fq8bslkWtiEWNHxtIXUUhApaiTIh4Ab+sSTAbqzyypAcDT7fOO0jJxeb68e3sLrsdmLF 3SHw== 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 e184-v6si23825085pgc.475.2018.05.28.02.26.50; Mon, 28 May 2018 02:27:04 -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 S933689AbeE1JZK (ORCPT + 99 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(-) 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 -- 2.7.4