From patchwork Tue Mar 27 05:29:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 132444 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4654208ljb; Mon, 26 Mar 2018 22:33:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELthQ+n8vJAGcN0FUJ5tFHK9pV0aUI9PonKc5rv55osSlS2/Q8cHpN5G1YEE/Uzrp1Vsz1YX X-Received: by 10.101.96.134 with SMTP id t6mr19740595pgu.58.1522128798957; Mon, 26 Mar 2018 22:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522128798; cv=none; d=google.com; s=arc-20160816; b=QnsGdmd5qga1iHeQRCQEZ4akMNTnObXtUjvzqu4VnuNaoAs6rFOzo3ClxCn3H9GIsl tALDm+SC/6u813VEq1Ak+gspN4nDVlcaAbxpETXLXlfAPM8rcmZPwcrzUcOawBJPo7k/ /HQWDANvTpMbzzuq8qAtYRri+j/ANzZfHx1vBB/Gn9iS9AKqxWEOIFXwZyX/COJew8Ai d2Uayld4isWhn79/FbGxlCk21pLbdwlFiD+OTqJ/tdKVcHHWZogvLcPU5yfokZPkwAls m/fmQLg4tP1AGEKsnW6r5FTZgnwIMq3aS9L87zYije6eKOv3UbTck+quVQaG0lFyWl4Y 2oDw== 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=E9yvcp/H6UoCgWpztkUxVXZwnZ0sa369vAzIJ0+As4M=; b=oaXkOWebIUzmektkeAwftXsuBow4eRzFBgFkHOeNvfhJYQ3r6u8qsjCP//QgGsF25Y DUa/8I7W8QxZsIFN/CNTRmawoX8LTHmCKanoo3vL89iLn1nWtSm87s3QwnRklkIbugtC ZN5dJkIamH56R1cuVogXi46bAB1e3csqBnPkC02caAsf78PPuBYJXBQUVifNZ+da8In5 v6r9OD3EEc6a3W+x8+EqQEFiyBAnKPwhwQM9bLX/SAbEmstzhIu1xIQDF2snR+/qH2IK cSkZgQlWiwCqFiCE6RlNsXEqJSLPFwhQRr/gCbUPseYrltyoIanCrdcPNzYtCgkclAfN oBJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Vn1WgzyT; 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 f2-v6si499695plo.141.2018.03.26.22.33.18; Mon, 26 Mar 2018 22:33: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=Vn1WgzyT; 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 S1752480AbeC0FdO (ORCPT + 28 others); Tue, 27 Mar 2018 01:33:14 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:46446 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbeC0Fc7 (ORCPT ); Tue, 27 Mar 2018 01:32:59 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id w2R5TaM6011947; Tue, 27 Mar 2018 14:30:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w2R5TaM6011947 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1522128604; bh=E9yvcp/H6UoCgWpztkUxVXZwnZ0sa369vAzIJ0+As4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vn1WgzyTjxXPpOwghdT7/BlpWKj7ox/6/eP63Wm9Nh8teYwgIv/7zIFk4XbIuFBu+ PZFjNL/TXCleGQ5/QSxtZhsn2bZMbmzRnCKLk/uwyCD2/hWUl8DoyTFoaUg/z0LhDX /3nYmVJ0M7saRdmXN8QgztPStOBa06mpqaOJpOzKD2QiN0v6A9WDu9QHty5kNCdl/c fmagMOOG1pOQ6swpFh4DRUHNhsuRFwBEvovXqZC8Ipj72TLiZAvunpQR1DCVhQT1qJ ZLMeiAtoThv20DGtp3HzdfsCKB8RziJHHchsgabuC79BdYbzU99NVHPkXNvQwiRKyc oCZ9ZkbgUhDpQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Linus Torvalds , Arnd Bergmann , Ulf Magnusson , Kees Cook , Thomas Gleixner , Greg Kroah-Hartman , Randy Dunlap , "Luis R . Rodriguez" , Nicolas Pitre , Masahiro Yamada , Will Deacon , Catalin Marinas , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 21/21] arm64: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig Date: Tue, 27 Mar 2018 14:29:35 +0900 Message-Id: <1522128575-5326-22-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522128575-5326-1-git-send-email-yamada.masahiro@socionext.com> References: <1522128575-5326-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 This becomes much neater in Kconfig. Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added arch/arm64/Kconfig | 1 + arch/arm64/Makefile | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 Acked-by: Will Deacon Reviewed-by: Kees Cook diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7381eeb..0c97f40 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -43,6 +43,7 @@ config ARM64 select ARCH_USE_QUEUED_RWLOCKS select ARCH_SUPPORTS_MEMORY_FAILURE select ARCH_SUPPORTS_ATOMIC_RMW + select ARCH_SUPPORTS_INT128 if GCC_VERSION >= 50000 select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSION select ARCH_WANT_FRAME_POINTERS diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index b481b4a..7318165 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -57,8 +57,6 @@ KBUILD_AFLAGS += $(lseinstr) $(brokengasinst) KBUILD_CFLAGS += $(call cc-option,-mabi=lp64) KBUILD_AFLAGS += $(call cc-option,-mabi=lp64) -KBUILD_CFLAGS += $(call cc-ifversion, -ge, 0500, -DCONFIG_ARCH_SUPPORTS_INT128) - ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian CHECKFLAGS += -D__AARCH64EB__