Received: by 10.223.185.116 with SMTP id b49csp1055883wrg; Fri, 16 Feb 2018 11:36:17 -0800 (PST) X-Google-Smtp-Source: AH8x224URAoxdULvE7FTepP9sCAUe7HVWIkSrRTFzlM31Zd0opF8vrc3gFRWRz+Hsae7BVAXzu4h X-Received: by 10.99.121.140 with SMTP id u134mr5837810pgc.89.1518809777573; Fri, 16 Feb 2018 11:36:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518809777; cv=none; d=google.com; s=arc-20160816; b=Ms8c1PE7E1KT/O1KkD/3uIxW+QIMgOAbYLx/miTlQ9ij3DkUVslgxR2E9iu9GwPInZ NsHq8irdYBxnIKSF6R4Qnl5zUEp4+Jetmw92cYrf75ED4MrNY36oqsdSuzZPY07xLQ5Y 9JgTR2C94+Jrf4VGXA9/2fN3B01p9l2Yp10Imgw6MRjMZ0fQfy1XqJLJakQTPuk2yQif V3uhn32NjikkwMRdefxLr6Q3WbRr8WI6IWXRM6Xw8NoHDZXaRv5V6Qe/cC72tpJra4ac vNxeIl9QHH/KeR/G3gqcJ4JM9xvBZaIiPoRwSqMSy83W+inqziCBKifJPCd3TExHRNgj 8Bzg== 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=G5hsOF43iRoT1pN7d/9mibt7V26nz0plYRyEv44rmrM=; b=eQkuUHsQcyyTnQ+o0xF/Mo/ZvYKe6WjhMDww1rILIQSD+VkzXEnf5Xe0pdQDbmUMDA i48HtwZBh+rkh5V0b6K9nmD9VzhxBluJJ2Za8HcqyLi3CzaFEqhAauQDRdZ8bdm9e52j gLyuh0KHnX+vppw2nqmQyuuyPr/IcDCVlIK/QNVttq2Jkjn+w2slfHnr5FY0B3G3yrhj sYuQerMYpz4YUCgw3gLG8wDmGUOu4oWwEa5g8fB1rJd+8hqh8yocQWTNFaVlyDBE6u// jimqeqcjVBNctPPlRqt13CsRCB7kHjEvN/qx6okW2KD5fuAE7D72Vz395PDoPjxYp9PM Mm+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2QEWDR4H; 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 u18si3118533pge.232.2018.02.16.11.36.03; Fri, 16 Feb 2018 11:36:17 -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=2QEWDR4H; 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 S1751593AbeBPSrx (ORCPT + 99 others); Fri, 16 Feb 2018 13:47:53 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:57772 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752659AbeBPSlS (ORCPT ); Fri, 16 Feb 2018 13:41:18 -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 w1GIdBTC013418; Sat, 17 Feb 2018 03:39:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w1GIdBTC013418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1518806361; bh=G5hsOF43iRoT1pN7d/9mibt7V26nz0plYRyEv44rmrM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2QEWDR4Hlr3QilxioYCpCSsx43ONaaJmInvWTXXUmE304l4lAMavOHPfAeA0T96gl AXKGQJOHHYwTFzyyf6xFcHDTAB/hG32I5n7NDEbux7IdeGTEV19T7dPMAWINmZ5Xsc n8TGz3q2v3Mk3WadW/wvNhMfgI4/zg8nlhffc1mvkQ+6cGWMRRSFFfcj7f7X/naLJ4 73fvUX8b4gX0kAjjgmsh5iK3Sh+aF6RZzt9fBS88p9pp++UNxaRsaMEIBNI6+P3rwh qrvOzQwf37NJ5VqnbGw8QJi94bHXwB/307gwrmuQyqSDDgVsqs3htVB0qtPEQswd+t /+r4sXsBGUqfQ== 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 , linux-kernel@vger.kernel.org Subject: [PATCH 09/23] kconfig: add 'cc-option' macro Date: Sat, 17 Feb 2018 03:38:37 +0900 Message-Id: <1518806331-7101-10-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 This will be the most frequently used macro. It evaluates to 'y' if the given argument is supported by the compiler, or 'n' otherwise. Signed-off-by: Masahiro Yamada --- init/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index b4814e6..f026a62 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -8,6 +8,10 @@ config DEFCONFIG_LIST default ARCH_DEFCONFIG default "arch/$ARCH/defconfig" +config cc-option + string + macro $(shell $CC -Werror $(1) -c -x c /dev/null -o /dev/null) + config CONSTRUCTORS bool depends on !UML -- 2.7.4