Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3539206imm; Mon, 13 Aug 2018 13:37:54 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxctZnAMCfeESfQYDdT+kfpOQgVdA7eVBq6fBYaA74ZA2BhcwBNwPJYasMbezyR77utQixI X-Received: by 2002:a17:902:3fa5:: with SMTP id a34-v6mr18073195pld.223.1534192674927; Mon, 13 Aug 2018 13:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534192674; cv=none; d=google.com; s=arc-20160816; b=oPwnb3oYu84dHqwWWfhPC1kn33KgwKYU5m7mdIUhG+ivkDZoEgVj46U8A2FPQJJha/ UyJ+0qp4tLMVRkr55NhAbQzsSpTHsrsg2Z+LXNc0HNhGY92gpnYLJI+PH3N+Ic9Jh8+I /bPelDB25y0SaP+/s40WGWJiUyBX9qlESPJZE0y1D6VYzTi3TUTOmIfdn1U9+hd1ZKn/ VEILP2eaUkPIIOxy2C5b6Vjos9Mep3l9nWPxvo4dTMDpsOz5I7ZDlmIWm1TpuJSnY5Z1 LD5pHSH6Vmcd9bl4zVNpItCY4zfKJrGmetZBQcw09tFMpKhSlN6mMxujlx2UGCWdE+V+ Qj6A== 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 :arc-authentication-results; bh=TA7kO+FncHcoxIHVtIyIwye/KldsAXYgtZJNLg0aO58=; b=Tc1pIEiVdNwJlI1osHq4gRwRMwpqnmNZ3iYRX4BtTY+AjieBiqiG9SLET1xK6odQ4p w5OGGA/0ict4dtC53Kdopx9fZa8v/U5PkrAkiURaE2GFWBg5BYvqej0Z9PIYTNjdHW1W 3DfZ2YRRa5SptSRvqb8owwWDpxA4YvXYpEAQS0AVeGhrNIQ9M60FeStsjzAzHQzt81HT dscePONUP5NAfjLEaQ5N7opwccds10hVg5c6tb2kOYXncWLamxNvTgI+TfZ1mpp8lq8x 757v6c8d8RiS6zSwylns9tBc12T1hDvx4XYCWa9t+FjMHw+P+in+5T2qtcLRjXz86HWJ n1kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MH3vs9IT; 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=pass (p=REJECT sp=REJECT 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 f2-v6si17997350pgh.661.2018.08.13.13.37.39; Mon, 13 Aug 2018 13:37:54 -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=@chromium.org header.s=google header.b=MH3vs9IT; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730681AbeHMWyl (ORCPT + 99 others); Mon, 13 Aug 2018 18:54:41 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:43229 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728540AbeHMWyl (ORCPT ); Mon, 13 Aug 2018 18:54:41 -0400 Received: by mail-yw1-f66.google.com with SMTP id l189-v6so14521471ywb.10 for ; Mon, 13 Aug 2018 13:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TA7kO+FncHcoxIHVtIyIwye/KldsAXYgtZJNLg0aO58=; b=MH3vs9ITToe6t6KxPhW2X5Nwsbu6Y6q6bYxCyg8i3EllbHEge+kGFwTEjpZ6urdsvh 6sSiRUxMyXAcepn7hWfZ/xoyGeiznGKZbxZQQo5vLuSGhxAnMd2xlpfIG5sExTydIp3A K+IZzFk9/IJo9j0dmJKuhnnnGrfLvPynOXRFk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TA7kO+FncHcoxIHVtIyIwye/KldsAXYgtZJNLg0aO58=; b=Tgq9MnH8HYhTIvrNzStGxHJX9IRWJKae8C3ATzmr149GhZ2Yg4GW2NYNuswjyWatDq yWr/raN7sQXqcaaV7a5TopYoTDs5QjEczL77iqV96BDlVREh6LRDTfwTwBaGCY8LXYsF I0wtKzDZnFJgSKvuB8t89JgvIhalPTJ0FFf+uXyB0JttxDH+oRGgBZcpgYhQEM2Jav2K ZQXGOU6HSOWcTPcopCidK1FXxCSPIm17FRy/RPUr4WCssQBP4V4RKll7RQmsbhM2qyAQ gCMSuL7+N3c+01x/zCNg42alc3kEPZefgDuSduYX5761pgYF7LAQb+Txb1An8DVgvXGv EEKA== X-Gm-Message-State: AOUpUlHCASFbUzV2BqTxlrmjILzg0yrogADtQuHiHTojjTkBK0A2bKiJ s0ATc8lSPO7BJxPXfeDJhHzJcDeLLwM= X-Received: by 2002:a25:a029:: with SMTP id x38-v6mr10822021ybh.353.1534191057133; Mon, 13 Aug 2018 13:10:57 -0700 (PDT) Received: from mail-yw1-f54.google.com (mail-yw1-f54.google.com. [209.85.161.54]) by smtp.gmail.com with ESMTPSA id b135-v6sm16962271ywh.24.2018.08.13.13.10.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Aug 2018 13:10:55 -0700 (PDT) Received: by mail-yw1-f54.google.com with SMTP id q129-v6so14529904ywg.8 for ; Mon, 13 Aug 2018 13:10:53 -0700 (PDT) X-Received: by 2002:a25:afce:: with SMTP id d14-v6mr9578765ybj.343.1534191053536; Mon, 13 Aug 2018 13:10:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:2316:0:0:0:0:0 with HTTP; Mon, 13 Aug 2018 13:10:52 -0700 (PDT) In-Reply-To: References: <20180811094853.32167-1-stefan@agner.ch> From: Kees Cook Date: Mon, 13 Aug 2018 13:10:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] gcc-plugins: require GCC To: Masahiro Yamada Cc: Stefan Agner , Alexei Starovoitov , Andrew Morton , Josef Bacik , 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 On Mon, Aug 13, 2018 at 12:38 AM, Masahiro Yamada wrote: > 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. I'm of two minds: we already have the gcc test in Kconfig so we might want to avoid redundant checks, but maybe the script should be a "complete" test. I guess the latter. I will send a patch. -Kees -- Kees Cook Pixel Security