From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752215AbaLYFcA (ORCPT ); Thu, 25 Dec 2014 00:32:00 -0500 Received: from smtp.mei.co.jp ([133.183.100.20]:65270 "EHLO smtp.mei.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752119AbaLYFby (ORCPT ); Thu, 25 Dec 2014 00:31:54 -0500 From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Peter Oberparleiter , Michal Marek , Masahiro Yamada , Robert Richter , "H. Peter Anvin" , Andi Kleen , linux-kernel@vger.kernel.org Subject: [PATCH 1/6] kbuild: fix cc-ifversion macro Date: Thu, 25 Dec 2014 14:31:23 +0900 Message-Id: <1419485488-22336-2-git-send-email-yamada.m@jp.panasonic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1419485488-22336-1-git-send-email-yamada.m@jp.panasonic.com> References: <1419485488-22336-1-git-send-email-yamada.m@jp.panasonic.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The macro "cc-version" takes no argument. Drop $(CC) from the "cc-ifversion" definition. Signed-off-by: Masahiro Yamada --- scripts/Kbuild.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index a6f7914..a972666 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -146,7 +146,7 @@ cc-fullversion = $(shell $(KBUILD_SHELL) \ # cc-ifversion # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) -cc-ifversion = $(shell [ $(call cc-version, $(CC)) $(1) $(2) ] && echo $(3)) +cc-ifversion = $(shell [ $(call cc-version) $(1) $(2) ] && echo $(3)) # cc-ldoption # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both) -- 1.9.1