From patchwork Fri Feb 16 18:38:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 128614 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp865545ljc; Fri, 16 Feb 2018 10:43:11 -0800 (PST) X-Google-Smtp-Source: AH8x227woBG9UzMai0ZPLK+l+2VIxu5zA1YmV+MkgM4EX1/FMlVtHEYHz6hbqtMageMeoqxguMgR X-Received: by 10.101.66.129 with SMTP id j1mr5745087pgp.56.1518806591440; Fri, 16 Feb 2018 10:43:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518806591; cv=none; d=google.com; s=arc-20160816; b=Rz3IYdnPLsGNwFKRbcmtfnEJXIZii2OKOD0BGz+21UR5zLTRrhnXECsesZotizQQW6 smzvQLzJCPKI4rPi2D0c85KY0/ekNVKZ2dknbZ/8sElBJjY2SHw5ZNG9ZVO2CIDJ6M3c iFRsiE5FNUlFHvWqYV/s59tPnBJp7oi4HXW0VFpEZD5/ZXVPpuROb/NClDAjTBs2Vvfq L3kjKeuPaHMK8ZJ20/LorwI84BgSshv8euUslgPTiUXA/mGuwQ2xMYLFrKHCT/SRMnmS wP7rqTKt6l0T8ZL6jL0z5p/GthZtvIyg5sMZVniquwlIx/1lvOj5JBX2BfEIq29lJO7p MgWw== 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=3HaRTIPTfu2Ud13Hd7mnMb61C3Dpjxmhm9k9d1jW2xQ=; b=ju5x+8HdmI79p8VdbA139Ed0HzaUl3LFqwBMy3uVhZrZb+sLeRC3YZGvOUPY9DHIFT LSn7QZpsRFNql1qI/1YAGpx8iryvN9e5gelD+CAnxEax5koXsCXzk3vz3bL6t/X4xoth zJv3jLU0xVvEyAUNZwwtS522QyRrx1XPINqaF0uuubN1IM6fQflgQPcDWmgh05m/jTx4 SdZR4lHRYEvJfU9Hfu/JBDB0Jf3vk4FxrAU/YZgEu5Ok+T8MnZPyctWspPlPk/v4gAlO /bURkDVNRJ312VTE8hA+mUnPhmO3x+nFv4tFAOF7mtHoTHYsvJ85YtV9/3bTzvEJD4KY hpcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=cE5poFrQ; 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 h70si4807313pfh.181.2018.02.16.10.43.11; Fri, 16 Feb 2018 10:43:11 -0800 (PST) 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=cE5poFrQ; 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 S1753517AbeBPSnI (ORCPT + 28 others); Fri, 16 Feb 2018 13:43:08 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:59556 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753280AbeBPSnF (ORCPT ); Fri, 16 Feb 2018 13:43:05 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-07.nifty.com with ESMTP id w1GIdBTO013418; Sat, 17 Feb 2018 03:39:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w1GIdBTO013418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1518806373; bh=3HaRTIPTfu2Ud13Hd7mnMb61C3Dpjxmhm9k9d1jW2xQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cE5poFrQ7gWR8lRI/On8FoVrFTuA9fDngRc2g/1h6Qei64yEkmPlsbj/kO37o2T9p GQl2TRSbqac5Xdt+zAn4hJZK1vtuzcvxYi4EjBaZQQjffRfIVabjbrDasIM+usJEbw G64PkGliTFWWCWUQ6XGyA2Rd9RcfQI33xEwcIL//LltwLlMFaRWdoKteiPhFgFy4MH pxV4WmJUJFJhUkLn2W5cLodzC7Xc0AbuPK6KNgWTmn6kG/n5vyhRNX8/doeV1sLE+8 KYV1bhS2BeHakpjc9/BgX9Nd6PeKK1CHTkaqj+F808Fiuux03akBDu3acPeLbWKyu3 I5ed7LnxzYfdQ== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org, Linus Torvalds Cc: Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , Masahiro Yamada , Michael Ellerman , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, Paul Mackerras , kernel-hardening@lists.openwall.com, linuxppc-dev@lists.ozlabs.org, Emese Revfy Subject: [PATCH 21/23] gcc-plugins: move GCC version check for PowerPC to Kconfig Date: Sat, 17 Feb 2018 03:38:49 +0900 Message-Id: <1518806331-7101-22-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> References: <1518806331-7101-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 For PowerPC, GCC 5.2 is the requirement for GCC plugins. Move the version check to Kconfig, and remove the ugly checker. Signed-off-by: Masahiro Yamada --- arch/powerpc/Kconfig | 2 +- scripts/Makefile.gcc-plugins | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) -- 2.7.4 Acked-by: Andrew Donnellan diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 73ce5dd..b8474c2 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -195,7 +195,7 @@ config PPC select HAVE_FTRACE_MCOUNT_RECORD select HAVE_FUNCTION_GRAPH_TRACER select HAVE_FUNCTION_TRACER - select HAVE_GCC_PLUGINS + select HAVE_GCC_PLUGINS if GCC_VERSION >= 50200 select HAVE_GENERIC_GUP select HAVE_HW_BREAKPOINT if PERF_EVENTS && (PPC_BOOK3S || PPC_8xx) select HAVE_IDE diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index b0f9108..25da4c0 100644 --- a/scripts/Makefile.gcc-plugins +++ b/scripts/Makefile.gcc-plugins @@ -56,14 +56,6 @@ gcc-plugins-check: FORCE ifdef CONFIG_GCC_PLUGINS ifeq ($(PLUGINCC),) ifneq ($(GCC_PLUGINS_CFLAGS),) - # Various gccs between 4.5 and 5.1 have bugs on powerpc due to missing - # header files. gcc <= 4.6 doesn't work at all, gccs from 4.8 to 5.1 have - # issues with 64-bit targets. - ifeq ($(ARCH),powerpc) - ifeq ($(call cc-ifversion, -le, 0501, y), y) - @echo "Cannot use CONFIG_GCC_PLUGINS: plugin support on gcc <= 5.1 is buggy on powerpc, please upgrade to gcc 5.2 or newer" >&2 && exit 1 - endif - endif $(Q)$(srctree)/scripts/gcc-plugin.sh --show-error $(HOSTCXX) $(CC) || true @echo "Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, perhaps the necessary headers are missing?" >&2 && exit 1 endif