From patchwork Thu May 17 06:17:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 136099 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1879217lji; Wed, 16 May 2018 23:21:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrGtH/tYrBLH5jSKCuYQluyPKhaf/+YCNWAcaCnrFRsKiY+MOdEk4bwKJ0ljy0Y9f1sKhFe X-Received: by 2002:a17:902:1023:: with SMTP id b32-v6mr3945833pla.145.1526538077734; Wed, 16 May 2018 23:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526538077; cv=none; d=google.com; s=arc-20160816; b=ig5ANIUDR5NXzN5GAsqAk8NEUR+hqEECVCZ+u5bBCBc3k+ED+uSrz/+EV2vda0hG5+ SJ8VHuGIc2AeCez2XNr+dHTsSH/m4OjED71jC/cGaLwjtRYB2dM2vmcAYyTSWcJgzkDs WOMU8txbzETJxBgdexbjgOr/Iepy1QAZg8Xoci9h1DeRU6kUqqqRx8osEPN6u4e8LkUt vnV33jL3O5YDwW+MUK/FBgKw5NIXAsrOehexvRZfdcR+T/0xXTP0ngebDHAXCp8m7FE7 Ap3EamU3wzD1fO3tgugNnzsa/cu+E2ODRzwPnusdmcxsPf0m4YwxStqioDWxqEygA/lD TNVg== 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=SHaC8/sgCayhpXeqxZOvoeMYH8fcS4tPhIe4qhRh/l8=; b=Dxp/K0HHnm7k83xtWYxbgr5vEVZT5iSHH1fDUyGAnwRhYniQTpRPwl9tbddV9wPiqw NxKGOehBnDq05+LMqSw7avQ922GlC/wDqgcUlrO3nlQ0QD4dErF8MdFD+mCPYFavgQVp yrhd2xpc0C34VUUuHohW9CBNlPprN+IO6OGKRA5EE9Rg1cmMAguvzUcvmjscqcjeZo1X cL/ouqtRiB8iTUTcUmuz8EvXxgCtQvmuBMjNlFPcyJ7k5Iw7EKLT50Ij95OfEnhiVLLp LiV5w5VXPOB8flfh6gTCrG9vJ+SYbKOt/s7j5XgK9R41Ga9L3Ct2/WThZw3R0EK+KQ98 4ouA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=YbkvCOZi; 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 ay5-v6si4227649plb.459.2018.05.16.23.21.17; Wed, 16 May 2018 23:21:17 -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=YbkvCOZi; 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 S1752377AbeEQGT6 (ORCPT + 29 others); Thu, 17 May 2018 02:19:58 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:25144 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752176AbeEQGTU (ORCPT ); Thu, 17 May 2018 02:19:20 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w4H6HbUS002841; Thu, 17 May 2018 15:18:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w4H6HbUS002841 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526537888; bh=SHaC8/sgCayhpXeqxZOvoeMYH8fcS4tPhIe4qhRh/l8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YbkvCOZircSAu2cBNE/aUsSaXzXHBhWkeo4tKWDY+TnJDRQGAj5SBO+elc8KfHm+4 gHSXbIrMmcSxEjkIlHUBOtwVJ2rCLgnx2PGE7SaHE4JW/Z7c6F2pxX10lg7j0/qYJs OsZPj2jU2hqmfOfaT7sBYrOufZMuuwhJHkbnePee1hL/Mv0kQMAh2pXt9umzgDah6N yZ69GeUCDJ6x4Dgle1JB8unTaxHPutOA4HunHGDulZNLgUvtqFVohOR7+dxb3ChY8M 2Y03uo/OUboXt3NoTCv/5Y8JNEOZ2GJx/ete6Ff2G8hXHnVLTe6wucmnLgiK88tuqQ MbY6XiG+FtReg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Linus Torvalds , Sam Ravnborg , Ulf Magnusson , "Luis R . Rodriguez" , linux-kernel@vger.kernel.org, Nicholas Piggin , Kees Cook , Emese Revfy , x86@kernel.org, Masahiro Yamada Subject: [PATCH v4 30/31] gcc-plugins: allow to enable GCC_PLUGINS for COMPILE_TEST Date: Thu, 17 May 2018 15:17:09 +0900 Message-Id: <1526537830-22606-31-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526537830-22606-1-git-send-email-yamada.masahiro@socionext.com> References: <1526537830-22606-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 said 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 --- 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 Acked-by: Kees Cook diff --git a/arch/Kconfig b/arch/Kconfig index 70f585f..6e8f0cf 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