kbuild: fix cc-ifversion macro
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 25 Dec 2014 05:31:23 +0000 (14:31 +0900)
committerMichal Marek <mmarek@suse.cz>
Fri, 9 Jan 2015 16:11:43 +0000 (17:11 +0100)
The macro "cc-version" takes no argument.  Drop $(CC) from the
"cc-ifversion" definition.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Kbuild.include

index edd2794..34a87fc 100644 (file)
@@ -139,7 +139,7 @@ cc-fullversion = $(shell $(CONFIG_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)