Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2821265imm; Mon, 13 Aug 2018 00:41:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwCJmhGUxt7UK5NPVmdHTyq14v+JAYdbrwePCaR0/7eWAf2zeScmRBFDJzfn8j+suCcNU2F X-Received: by 2002:a63:7c5c:: with SMTP id l28-v6mr16256519pgn.352.1534146078499; Mon, 13 Aug 2018 00:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534146078; cv=none; d=google.com; s=arc-20160816; b=ulhMuGTw201bqTK5EWMCpc2+uSiOw6X2+FMBoaafLeDfudOWJIVtvHst9Y0AyTpx9M /UjMUWT5kYTsE5aHfxZqtK1vos+h017umzV+KWXjQtx86TcBiLOV8yt173TKdu1PlXcG 19Oa7zJT1OUydXmCnp50j1nadW4TOskHSf/y2YDhq/MB5jo+aHvCrtE3a+Ha4zywPNEd 72uys07OvJ/dO9dnXAhPB0YJFPvphfyXJpaJbwi6fuk1GNPVUDKRok/LROM+bON2ntR6 SlH3HAUd5DDAN9v1Ac5lFfrB6BrksSDcuGlc8hv+wNFhtXtbH9Uq1ICX18NvMFMdITsT 1kRg== 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-filter :arc-authentication-results; bh=lwj47P6rSPW/NUY7WgUbCmcOCcLfePvNn/67AT15lGU=; b=BGjas3wiAxcn8O6DJjCcFuBp9h3fvVpLfua1dmmHpWLnS2DxK0msnVRrPb8rXErtkB z/ObU+XdB4ZYoKg7bUF7A3FPW/4a04NxFjq3fGP4GeY1FdtRVKV/PqgKsQvHKWjOC2am +mwANq275vTLPhyXs/H1ixGYbM2105d/Lbuc8ZIPbMGJEUa6DtxidXa4FmIGfnRj/0A2 sVpfLBOFDGL17DTskarHCIbxiEHsgaAQQ7PWJRaocY3zyK4XThDwlN0ZPhZ1abTC/rhg yuD4X3VPYUiYYBR+Fa3kbRjEpHN9Me2dWh3tjDWmSVk6FON6woXmShUp83Nzwjwfelk4 ly+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="sh/hx+sH"; 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 y23-v6si16668676pgl.132.2018.08.13.00.41.04; Mon, 13 Aug 2018 00:41:18 -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="sh/hx+sH"; 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 S1728956AbeHMKUH (ORCPT + 99 others); Mon, 13 Aug 2018 06:20:07 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:53224 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728055AbeHMKUH (ORCPT ); Mon, 13 Aug 2018 06:20:07 -0400 Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w7D7cwb8031708 for ; Mon, 13 Aug 2018 16:38:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w7D7cwb8031708 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1534145939; bh=lwj47P6rSPW/NUY7WgUbCmcOCcLfePvNn/67AT15lGU=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=sh/hx+sHRWqd1ahXUUnZMs7kr5t9o4J9ZM0TmAXzfFMSMGyKOeCod5q4XEVqZqmQg wT6quLGKaXnKLiinVykWA5SDKy4Y8n9D4PXFTSl09/C5SsyEtB1zoyS/9Tx9BtF2NW jfjKcKLIoaihR+sDig9vhQ83EpvfAqJEzRlpaUWIPfnFAGEXQCgt49QMeycrlWwp4S kbBPoM2j4e8zexR2V7RzxzHP01aMG8PEeITyoV5axi55Z2/J+9l9lzhEo44A78+FuV +e6m2CoJmNjfy6MWkgP1exNYkmYb/4e8U0KwSEk8qsNwEdHOIT88sif1CgnnvWUxVy ux/7skGJYGT6Q== X-Nifty-SrcIP: [209.85.222.51] Received: by mail-ua1-f51.google.com with SMTP id q12-v6so8148135ual.2 for ; Mon, 13 Aug 2018 00:38:58 -0700 (PDT) X-Gm-Message-State: AOUpUlG765FLcAn6xeTEftNybS0vFzswpx6G7d/GzmPlbdjan4XZnx64 CHAnox2ireISYTGEjtJrgqzhpn7+JZONqiqinAY= X-Received: by 2002:a9f:3d6e:: with SMTP id m46-v6mr10849338uai.17.1534145937911; Mon, 13 Aug 2018 00:38:57 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:2642:0:0:0:0:0 with HTTP; Mon, 13 Aug 2018 00:38:17 -0700 (PDT) In-Reply-To: <20180811094853.32167-1-stefan@agner.ch> References: <20180811094853.32167-1-stefan@agner.ch> From: Masahiro Yamada Date: Mon, 13 Aug 2018 16:38:17 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] gcc-plugins: require GCC To: Stefan Agner , Kees Cook Cc: Alexei Starovoitov , Andrew Morton , jbacik@fb.com, Emese Revfy , Linux Kernel Mailing List 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 2018-08-11 18:48 GMT+09:00 Stefan Agner : > Unsurprisingly GCC plugins require GCC as a compiler. This avoids > GCC plugins being selectable when using clang. > > Signed-off-by: Stefan Agner > --- > arch/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/Kconfig b/arch/Kconfig > index 1aa59063f1fd..8c693a837ed7 100644 > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -422,7 +422,7 @@ config HAVE_GCC_PLUGINS > > menuconfig GCC_PLUGINS > bool "GCC plugins" > - depends on HAVE_GCC_PLUGINS > + depends on HAVE_GCC_PLUGINS && CC_IS_GCC > depends on PLUGIN_HOSTCC != "" > help > GCC plugins are loadable modules that provide extra features to the > -- > 2.18.0 > I guess the more correct way is to fix scripts/gcc-plugin.sh This shell script should exit 0 only when GCC plugin is supported. Kees? -- Best Regards Masahiro Yamada