From patchwork Fri Apr 13 05:06:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 133317 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp344888ljb; Thu, 12 Apr 2018 22:09:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49qyPt1DX+CmI7mX1MoiJ8njEjdsF/RkN+g72bWeda6vG+MxIrKupd15kLEZg0XWehFUz7J X-Received: by 2002:a17:902:5609:: with SMTP id h9-v6mr3857479pli.121.1523596162258; Thu, 12 Apr 2018 22:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523596162; cv=none; d=google.com; s=arc-20160816; b=CyStO62dfVgTo7lrZmo0MuBG0Qe57UbmfXaN6VHv0tqUjkPJtNM3yCaXW80In+lgeC jlriNJ+/MBczz9IMtRFmxAs060ZaaOqgGu3S/3HxC4GdIYJkkHHMsQ5P+p5vSxlVg4mw qsr0W79ZysCgcmzd/vOtcS1f5M3gsmnkxHDSPBVw2eQhBKUZk8GlFYF0gQu18Hidu6Jt oe/mvXSBdlwSsR0jAO04Cjcx64ZanS6zMYBxGG6juvNWRmgU4TXz/GxaIY8wjY3JBjdj vjdRiuvXe7w5K/3eaXkCPPPXE/TPkjwc5anj/qI4xNU0YkGNMGgkuHEkAUf7TXfanXPV PZuQ== 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=40eD89Qr4HTIkp8rtOyarGmYd/X+MxgPXbcGP5lC9sA=; b=aFPYL5+EEtu2/3XfXgqsUcQfRWOr4lb4W5FJytG4wGCbEwRusIC8Y7gtf5Oi3EtI2k C9s9WMiqPastl3abl69QvYKdayfGRejvy0VlOZJgK3W6CKK6E4bQwwWvabaGzAkdZ7sZ 4AEo9JkHL9FJ4SuKJzrQX1fd7sMFXpOjR3CDLYWv4VCRPBT8CcRVFWyJNV4yNSOLizSB PVSokdkzeJ5MsdfIOu3FfVj4AZGL6WjpAQlNvQWiCCXKJArn4m0DOxPgPds2z8+Xo7XF oxSMNSKKLbNMsTt57kT9+0skwPlXZKUGXbjoE7rT5oNHygFwmirPxQLhkAEovARQuNl5 5qMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=yzdm+o7b; 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 r11-v6si4903304plo.278.2018.04.12.22.09.21; Thu, 12 Apr 2018 22:09:22 -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=yzdm+o7b; 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 S1753507AbeDMFJR (ORCPT + 29 others); Fri, 13 Apr 2018 01:09:17 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:55853 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbeDMFJA (ORCPT ); Fri, 13 Apr 2018 01:09:00 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id w3D56lgM029209; Fri, 13 Apr 2018 14:07:13 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w3D56lgM029209 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1523596033; bh=40eD89Qr4HTIkp8rtOyarGmYd/X+MxgPXbcGP5lC9sA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yzdm+o7bLu+hSc/QZHX19qlA5kqA7KShzI2LGI8h5sDNJ3I7O21fMVPhltYAWjAN7 PS9p23YrnQrnUcvNMyx+w+++c5V/h3IjAt30C0hWCZQviM4qT+aY6xU+Zc+WT6fYG5 B07YmGz+2MFkMnoyrU3XTkYyjCstFA2E3vXcBVyZH6IKTmIKNZ1Pop2gMv4eStICVu qAllrE1+rlEhey/JnN0zuXCCxY4ssUVW0stOSQuMEULfy+Mr8GUt6Xe9STvh3lNIBI WuBGWXiYCcTzGTHRuAVt6OIFj5NJXVjzQLi2hfLHYl8tmRziqkf9koIVxsKWh2xSMB mgF9g6NvSO6eA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Linus Torvalds , Sam Ravnborg , Ulf Magnusson , Nicholas Piggin , Kees Cook , Emese Revfy , x86@kernel.org, Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 28/30] gcc-plugins: allow to enable GCC_PLUGINS for COMPILE_TEST Date: Fri, 13 Apr 2018 14:06:37 +0900 Message-Id: <1523595999-27433-29-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523595999-27433-1-git-send-email-yamada.masahiro@socionext.com> References: <1523595999-27433-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 v3: None 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 9166157..95b9b2e 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 @@ -493,7 +492,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 @@ -533,7 +532,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