Received: by 10.213.65.68 with SMTP id h4csp342737imn; Wed, 28 Mar 2018 04:49:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx48mTWzfM8tuxdYbhSuvWE263gVGqjBHqcEpmETPMcENF5QFm+ucJAWSaHi4Idd80l5ZPxMY X-Received: by 10.99.4.214 with SMTP id 205mr2294684pge.375.1522237748667; Wed, 28 Mar 2018 04:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522237748; cv=none; d=google.com; s=arc-20160816; b=zeWuCxYKIw6vOMZqH71kEJhgd6BiNVD1Cn6L89NhpIajsTDw4+oEXOp1iwey4oGK1J QO5abg5b4940bFbCHaZEaOTHm6bj9Y3cAY6ASxY7/4DVcOvF4Xee2bJtWxopIzfGa5YV 28xJKxxVOBVGi8g+/sa0MmgiD4MJLhPHhNzvVFLq7fvLsz7bhETQVBJxTVz4ZuY6mJRZ oMyeSUawMBI2SE8utnMua0hj2xwZkkvjkkjFvPQdmSxPflAg4PIvuCgXPevW8bG2lvQC KqiU/msciAwxzY3n+Yesex0PCr4lbEPES0/aoRJBa/TeJuUZhn5Mw0l96pWZACXFYeqD UFSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=FAgWcHMR3HfetGd1gIMFVBbc3KU1HRjboMPRyirwVNw=; b=wadJ72FxxMoCGarvMjpM81u1nIrQ25xOandGg2kroejK0izFm03pA0Y8+Rw5sNptNP syciNgy5NoM+hHO5wmhHN50mzFjaVuDsNoag8E6bqlFF0ml0feD599DaV4qOSQdGPoO0 IYQhGesdaXchpMk/paOLSlyFd/Ys39vfzBqknjGGAz1bauQvFG3nzm5nQXDmFiFv34/Y 2fAhzthmXB8CoD19XgSbceVQnE2M/Y3+RqJnfHo3aIyc71Z3fEKyUME3NFvvtEq6bMY2 pt0rpEPjUssr+sN8qH6nXozw9nkrU+8/nEnklP9dIY/82BLkCu16wUlbQxsebpAfmUKJ XEkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=Pl1UMHSB; dkim=fail header.i=@chromium.org header.s=google header.b=FuOS+6Z0; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si2369339pgc.14.2018.03.28.04.48.54; Wed, 28 Mar 2018 04:49:08 -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=fail header.i=@google.com header.s=20161025 header.b=Pl1UMHSB; dkim=fail header.i=@chromium.org header.s=google header.b=FuOS+6Z0; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752189AbeC1Lry (ORCPT + 99 others); Wed, 28 Mar 2018 07:47:54 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:36757 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751434AbeC1Lrw (ORCPT ); Wed, 28 Mar 2018 07:47:52 -0400 Received: by mail-vk0-f68.google.com with SMTP id q198so1195391vke.3 for ; Wed, 28 Mar 2018 04:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FAgWcHMR3HfetGd1gIMFVBbc3KU1HRjboMPRyirwVNw=; b=Pl1UMHSBesMv6i2bIqycu+8huDgBG1EEgjXMJaG2NpYZaI2usbY/k/fjPpWUNFDC1P 7luOVUW3B2z+2cMJgNuvNWtOfmnFK2YNl8cITqA4tAmDc6vLTIWfO0G/wn00Vx2/jfEK afzJ96uFm6cuyAo1vVzrrIpNVchYjDq8WsJHgxLyAJc3Frvbe57Mx7bV+W3apq4lsLzn 59Cb5gnSetmzC7U40XHDfgIdjNBHQ+8s/3CXv21y6VRc2tBQ6LKgqA4KkuLbUufTy3LU EEz8Oq9psgZgFqYTF3/S3jEHow3LpHS0jfnIXLshUDt0+4bSUgqoSjFAAjlHXJBY5vZl 1JnA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FAgWcHMR3HfetGd1gIMFVBbc3KU1HRjboMPRyirwVNw=; b=FuOS+6Z0lrjWakLXKjwBrU9feTzDRLLs9WeSg41vwoUfHSIMGEa3AwNevOdLQsRkZm imDIPaxvtZkd3FwcqEujU0ryxzhbij2eL2Kgp0Swt2APwR+LVETCGqjNsabAZoDjFkBY tifcsNGyX8ZR7Xn8WDPx9sFj6FgK2wyW3dTfc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FAgWcHMR3HfetGd1gIMFVBbc3KU1HRjboMPRyirwVNw=; b=fcP6BDNo6jwwl7wrOjC3jiwMzzYIx4dGj1vW9TdV5hiucFNV2uEDowA55qfBCTQ0rQ 8JCQQipElmAUBj1xbQozcNQrajwHLCEW1DeER622r3fHHGF2KN7oYoW7HB1ec9GBz0Wj 1ntzwoliq8dMTxBmnT7lNKXA9scCtSEGBKq53mvBQwmiweC33KWjFfyMc/7nVykICc8A Ex4pOWzKA444ksVV3iunwlDWKRsUGIio+VUdEJ65hcTWxJQlmwu9FhbdaWVCe9t231el 82qiMkCUwyNl44l/VpMIl3zZgEZne0qxM7jMcCBHfcSYyed6WPXZ3PJI6L7gIaPTQMpg E/6Q== X-Gm-Message-State: AElRT7G3Pk9NgS/0y+P0/+WBRsAO90kcu6WfnuBcPzNY6xoH+bMrk8Tw uRr/FWuchc6TzQlvFlh6AtrbC12RcGZx8xDxIIkZ7Q== X-Received: by 10.31.198.131 with SMTP id w125mr1976475vkf.158.1522237671118; Wed, 28 Mar 2018 04:47:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.129.9 with HTTP; Wed, 28 Mar 2018 04:47:50 -0700 (PDT) In-Reply-To: <1522128575-5326-21-git-send-email-yamada.masahiro@socionext.com> References: <1522128575-5326-1-git-send-email-yamada.masahiro@socionext.com> <1522128575-5326-21-git-send-email-yamada.masahiro@socionext.com> From: Kees Cook Date: Wed, 28 Mar 2018 04:47:50 -0700 X-Google-Sender-Auth: bm-CBd_BHcJlWiZfY3QYl1iT1IU Message-ID: Subject: Re: [PATCH v2 20/21] gcc-plugins: enable GCC_PLUGINS for COMPILE_TEST To: Masahiro Yamada Cc: linux-kbuild , Sam Ravnborg , Linus Torvalds , Arnd Bergmann , Ulf Magnusson , Thomas Gleixner , Greg Kroah-Hartman , Randy Dunlap , "Luis R . Rodriguez" , Nicolas Pitre , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > The plugin availability is checked in Kconfig, so all{yes,mod}config > will not be bothered. Remove 'depends on !COMPILE_TEST'. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: > - Remove more 'depends on' > > arch/Kconfig | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/Kconfig b/arch/Kconfig > index 88cc925..b07094c 100644 > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -414,7 +414,6 @@ menuconfig GCC_PLUGINS > bool "GCC plugins" > depends on HAVE_GCC_PLUGINS > depends on $(success $srctree/scripts/gcc-plugin.sh $HOSTCXX $CC) > - 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. This one is nice, yes! We get coverage for anyone with plugin support. > @@ -424,7 +423,6 @@ 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 > help > The complexity M of a function's control flow graph is defined as: > M = E - N + 2P > @@ -487,7 +485,6 @@ 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 > help > This option will cause a warning to be printed each time the > structleak plugin finds a variable it thinks needs to be > @@ -527,7 +524,6 @@ config GCC_PLUGIN_RANDSTRUCT > config GCC_PLUGIN_RANDSTRUCT_PERFORMANCE > bool "Use cacheline-aware structure randomization" > depends on GCC_PLUGIN_RANDSTRUCT > - depends on !COMPILE_TEST > help > If you say Y here, the RANDSTRUCT randomization will make a > best effort at restricting randomization to cacheline-sized All three of these, though, please leave as they were. They're either needlessly noisy for COMPILE_TEST (GCC_PLUGIN_CYC_COMPLEXITY and *_VERBOSE), or reduce the COMPILE_TEST coverage (GCC_PLUGIN_RANDSTRUCT_PERFORMANCE). (And perhaps a comment is needed to explain these to avoid confusion in the future?) -Kees -- Kees Cook Pixel Security