From patchwork Fri Mar 1 07:10:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10834569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 15EB01399 for ; Fri, 1 Mar 2019 07:10:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE6682F529 for ; Fri, 1 Mar 2019 07:10:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E32FF2F675; Fri, 1 Mar 2019 07:10:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D7102F5BE for ; Fri, 1 Mar 2019 07:10:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727707AbfCAHKy (ORCPT ); Fri, 1 Mar 2019 02:10:54 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:16716 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbfCAHKx (ORCPT ); Fri, 1 Mar 2019 02:10:53 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x217APwr017759; Fri, 1 Mar 2019 16:10:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x217APwr017759 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1551424225; bh=8t7excQEtZ3k0zZuNz5dRZOkstOKAajR6OxsjLRcbGs=; h=From:To:Cc:Subject:Date:From; b=uQ3era+zc3DAxv59/5kHhrafsI8uOdFCVnltLf4qo+rFtb/qRpK6N/qh+3wbdC3m5 /KSBiTDjm/UdqEg5iV06b8d/KYx/6XwFKi/Wywj956et37/0zE1mJXqeHeU+wBxpzW w4T4ybSG8ihRkglQSM5zAyIJRdyh/xnIvIj3Q55fgC0BuA86miIlqgait9YjblAm6C C03KepwLTtIlnejmSxf79q2XAk7/NzHL3khsESCRDXUzyOugG6Q90WOuYU4a/wXTlE itY6JFYH3Ghp4XZ7f1rzdkqLYa7kzVRAGv14YHcqmtANczl27ccHBqmoapf0IQpfmp slt+jhmWvPYUQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] kbuild: update comment block of scripts/clang-version.sh Date: Fri, 1 Mar 2019 16:10:20 +0900 Message-Id: <1551424222-3727-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 469cb7376c06 ("kconfig: add CC_IS_CLANG and CLANG_VERSION") changed the code, but missed to update the comment block. The -p option was gone, and the output is 5-digit (or 6-digit when Clang 10 is released). Update the comment now. Signed-off-by: Masahiro Yamada --- scripts/clang-version.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/clang-version.sh b/scripts/clang-version.sh index e65fbc3..6fabf06 100755 --- a/scripts/clang-version.sh +++ b/scripts/clang-version.sh @@ -1,14 +1,10 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # -# clang-version [-p] clang-command -# -# Prints the compiler version of `clang-command' in a canonical 4-digit form -# such as `0500' for clang-5.0 etc. -# -# With the -p option, prints the patchlevel as well, for example `050001' for -# clang-5.0.1 etc. +# clang-version clang-command # +# Print the compiler version of `clang-command' in a 5 or 6-digit form +# such as `50001' for clang-5.0.1 etc. compiler="$*"