From patchwork Mon Oct 29 16:03:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 149673 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4323599ljp; Mon, 29 Oct 2018 09:04:41 -0700 (PDT) X-Google-Smtp-Source: AJdET5cpKLJM1jM16TDmXS2tMcEGvUZ4f0X9LZ84FR8OoDagNCVipAfT4/WjFTKqdK/Pf85fMLms X-Received: by 2002:a17:902:404:: with SMTP id 4-v6mr15212857ple.331.1540829081282; Mon, 29 Oct 2018 09:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540829081; cv=none; d=google.com; s=arc-20160816; b=x73K3SgYQGnTdApYfew/C1WbrJFZVjdNEtn0k0XpzcNrxyFo+CmRrnzKiW61osJcqI vDUpLsyDIj4vF3sa1siidrnCeGwjR+7JLiDoEllqhahFOYLn5lQGYdMvxpzvrCE7c3RO /4XHm+EjUWrefLFlSdTC42XLKWgGCXXNgRXIX478eHC7NV/C6fE7vtEDbnrLNzZsYTdV M1RQ3kVdrBSwia91Txr9dsTAd58MF384dTZraeHVbUOU4gt05soEbx/hALXPqERp6oLk 1+wgrvJPaXOP7j9C/ahFqMAtHO2X4tqdbtLKd14Z9LOw9QpxEFWkF0QAVadhqS+E7yDb 20lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=0tY//mM+jHbaE/ok29QOqhO+tPXAkxJXjjSXgjK7fho=; b=ixFAjVMJFBLbaCl76gbuHRxpLkbOI1SNjgsMsgxSJNVK/U+yk/LlSkeHqavk7uWofM LUxhwY+ZRYKCFlsqBTGCUtf+gG3y7F7qMXQcOkvBar5USOTLMLQCiOZerIwAiXWUVnrh NCIBE6nV8y4j+cclIFLcOZLXaM8nOcgm4aoke7Zyv2lE/YRX59657nVXId6bv8jC0o2Z Lb87YQMfjp5w+WiOzv5NYLvNZpq1vTMzPoIpHP7bLth4pi5zrDgifOD6v+58AmntCgYP g7CVZ9/QGWQlBgFV2i/2jv0zh5P4QzZj7eAJ7ZdI/9ExtUHVVocqvTyOM7x8hikSfH4m KVvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=jxKfdqCl; 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 z1-v6si19794462plo.59.2018.10.29.09.04.40; Mon, 29 Oct 2018 09:04:41 -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=jxKfdqCl; 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 S1727809AbeJ3Axw (ORCPT + 32 others); Mon, 29 Oct 2018 20:53:52 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:61845 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727586AbeJ3Axw (ORCPT ); Mon, 29 Oct 2018 20:53:52 -0400 X-Greylist: delayed 1342 seconds by postgrey-1.27 at vger.kernel.org; Mon, 29 Oct 2018 20:53:50 EDT Received: from grover.tkatk1.zaq.ne.jp (zaqdadce369.zaq.ne.jp [218.220.227.105]) (authenticated) by conuserg-12.nifty.com with ESMTP id w9TG45i0028068; Tue, 30 Oct 2018 01:04:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w9TG45i0028068 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1540829045; bh=0tY//mM+jHbaE/ok29QOqhO+tPXAkxJXjjSXgjK7fho=; h=From:To:Cc:Subject:Date:From; b=jxKfdqClVW7bKA/7MNaoLr4tQAZIWuMcFvC7WworuZpvL5buCTsVCt/oeP1cAd2ni /0oLLBDMbrFKFQ3LARl8ci7OkQ9gNI3vByyGHEE5FEeAsz9sPjYKCeMmCiyREE7SVq HLIoTodN5a4O67tYcsscJ/TgqXJRNng8uxMIn8xyVA8oisIBXJJhdOGOBJcEOfS510 VpcACBG7Eqne8peB9JSAXJMzmDVQS9TFuDHL5CKuL/3G4tjsOOebEKcmCsg8XFIOIF yd/44Ena80yAZwHEOvG6YRYstU+dQjDi0+NhJng4rKPy1LBiSwe7gFwpCVEUoOZBJ9 15TNzuzeYgFgA== X-Nifty-SrcIP: [218.220.227.105] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Michal Marek Subject: [PATCH] kbuild: remove unused cc-fullversion variable Date: Tue, 30 Oct 2018 01:03:54 +0900 Message-Id: <1540829034-17725-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The last user of cc-fullversion was removed by commit f2910f0e6835 ("powerpc: remove old GCC version checks"). Signed-off-by: Masahiro Yamada --- Documentation/kbuild/makefiles.txt | 15 --------------- scripts/Kbuild.include | 4 ---- 2 files changed, 19 deletions(-) -- 2.7.4 diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 7b6a2b2..8da26c6 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt @@ -537,21 +537,6 @@ more details, with real examples. The third parameter may be a text as in this example, but it may also be an expanded variable or a macro. - cc-fullversion - cc-fullversion is useful when the exact version of gcc is needed. - One typical use-case is when a specific GCC version is broken. - cc-fullversion points out a more specific version than cc-version does. - - Example: - #arch/powerpc/Makefile - $(Q)if test "$(cc-fullversion)" = "040200" ; then \ - echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \ - false ; \ - fi - - In this example for a specific GCC version the build will error out - explaining to the user why it stops. - cc-cross-prefix cc-cross-prefix is used to check if there exists a $(CC) in path with one of the listed prefixes. The first prefix where there exist a diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index ca21a35..19a63db 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -147,10 +147,6 @@ cc-name = $(shell $(CC) -v 2>&1 | grep -q "clang version" && echo clang || echo # cc-version cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) -# cc-fullversion -cc-fullversion = $(shell $(CONFIG_SHELL) \ - $(srctree)/scripts/gcc-version.sh -p $(CC)) - # cc-ifversion # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) cc-ifversion = $(shell [ $(cc-version) $(1) $(2) ] && echo $(3) || echo $(4))