Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5626670yba; Thu, 11 Apr 2019 02:09:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6R5LZHcq1k1tX884KyeNBe/93aDGRpiaC6yFrP/m+jI6AIjSCT9e+pN7CxFtu/rhdlz8Y X-Received: by 2002:a62:5185:: with SMTP id f127mr48986033pfb.199.1554973767129; Thu, 11 Apr 2019 02:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554973767; cv=none; d=google.com; s=arc-20160816; b=JJqx4DlBfnRdjS2YV2asuEbkU+DmaO2S4agcGuPMC1VEXI55NJ7KvU8qRys/Xy7D+V KgWEzxk0MNCJtQxLrXYGcoY2jchImF0rltw/So9aJm/h8pEaGokxentLLfFQyeOF3DBh vXE+h2aToXWtDlC5bDgcWr4xo7W5cvWovUtl2AdkR8veuDdMzWnUy3cP8BdOMKynecW6 7BOfxW8fT+0FHDVS2zn3caE+q//9fRP23ateKP+YlX96R0/t05YzUKRsvDDr9pT62F2e 7Zfu9TsX+luaft9al01cuZz0bbTTV2YpOjvpXlIU31yprpb7wFB00X+IQyRAWjOmTz6x 3rTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=mYf69teb1w40PjpdABpc04QokK96/tr8qjs1lzvWhQ8=; b=wPjy3+Jnvg49gZ2dqzSkhk9lNXPVUEB88zKYd3lZTGMjh3zkUqrbx5yrbuz5dI9emW mL5iF/gLTgqD6PRIL+VY3Zb9Vvh9Z+9XP+INkKVwiH9dSG5vf3Dhu/J1ThHSELiIdfwt OtyizyHfJLbElNAHPWIu7gk0FFHxJk3G7I/Yp6Qsxak2XQUPj4bcro/YiuCGoJSXrE2r JwF8s/pMpTKRqA5l0lgQf369KflCa0ln95oe6sF6GTrZs0b+u/Z2VIGhDqG1FghzcXZn 2c38nfoappU4Mbqas7KOKoUTbFogQ6ThcByg6Xmu5ilNzkAZfYRx3npVHQVl+g+FdL7s UAeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vv7ynCE2; 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 j184si37378711pfb.106.2019.04.11.02.09.11; Thu, 11 Apr 2019 02:09:27 -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=vv7ynCE2; 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 S1726968AbfDKJHO (ORCPT + 99 others); Thu, 11 Apr 2019 05:07:14 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:42222 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbfDKJHF (ORCPT ); Thu, 11 Apr 2019 05:07:05 -0400 Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x3B9705Y017234 for ; Thu, 11 Apr 2019 18:07:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x3B9705Y017234 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1554973621; bh=mYf69teb1w40PjpdABpc04QokK96/tr8qjs1lzvWhQ8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vv7ynCE20ulJzkSpVTvK7VbIVwqFn3q5mvIRAB3XDfGLQcJzp+5qPXnoACIMSodMn UtkqcuEReYV9eikX1jDNMOf0q26hHDclxFq0avJnAljhunQUEi3YFgID1jwMlW5UT2 4dBqZd6bZBJxvwVofr/Ic09qB93xWmR1Z8g+PiUV5+9+uFmaUpbS02kgUA39f3boXJ XHJl8XSvuijoupgGTBjRbR1zVkQ9CTcYS/a9ONmdNDE0DfSPPEdxwk0iBlTddnzULs bFnsfOzVEjJ+ndh1R9wYnI7425i6XRjd3wOTyxOJRIUT4h06RxIkKZrXmzWVTEQElK rrzC+GGxJRxHA== X-Nifty-SrcIP: [209.85.217.42] Received: by mail-vs1-f42.google.com with SMTP id n4so3056799vsm.3 for ; Thu, 11 Apr 2019 02:07:00 -0700 (PDT) X-Gm-Message-State: APjAAAV90KlBBQh2Yg9Y1722rJioomnn/CV7pZvYw7B8B1XRIi/HpYeb Y0Hlgzc2p1fPUwJcUC/8adx3KhcGTiZO2X7wcME= X-Received: by 2002:a67:818e:: with SMTP id c136mr27077719vsd.65.1554973619704; Thu, 11 Apr 2019 02:06:59 -0700 (PDT) MIME-Version: 1.0 References: <20190323015227.245455-1-dianders@chromium.org> In-Reply-To: <20190323015227.245455-1-dianders@chromium.org> From: Masahiro Yamada Date: Thu, 11 Apr 2019 18:06:23 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kdb: Get rid of broken attempt to print CCVERSION in kdb summary To: Douglas Anderson , Andrew Morton Cc: Daniel Thompson , Jason Wessel , Christophe Leroy , "Peter Zijlstra (Intel)" , Kees Cook , kgdb-bugreport@lists.sourceforge.net, Johannes Weiner , Linux Kernel Mailing List , "Gustavo A. R. Silva" , Nicholas Mc Guire Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Sat, Mar 23, 2019 at 10:55 AM Douglas Anderson wrote: > > If you drop into kdb and type "summary", it prints out a line that > says this: > > ccversion CCVERSION > > ...and I don't mean that it actually prints out the version of the C > compiler. It literally prints out the string "CCVERSION". > > The version of the C Compiler is already printed at boot up and it > doesn't seem useful to replicate this in kdb. Let's just delete it. > We can also delete the bit of the Makefile that called the C compiler > in an attempt to pass this into kdb. This will remove one extra call > to the C compiler at Makefile parse time and (very slightly) speed up > builds. > > Signed-off-by: Douglas Anderson I know you add lots of Cc: lines when you pick up patches, but I think your script can be improved. You added "Cc: Douglas Anderson ", but Douglas is the author. I think the author should be excluded from Cc. This commit looks as follows in linux-next: commit 685dc1264544c947d26963dcf1ac982d3408f444 Author: Douglas Anderson Date: Wed Apr 10 11:02:35 2019 +1000 kdb: det rid of broken attempt to print CCVERSION in kdb summary If you drop into kdb and type "summary", it prints out a line that says this: ccversion CCVERSION ...and I don't mean that it actually prints out the version of the C compiler. It literally prints out the string "CCVERSION". The version of the C Compiler is already printed at boot up and it doesn't seem useful to replicate this in kdb. Let's just delete it. We can also delete the bit of the Makefile that called the C compiler in an attempt to pass this into kdb. This will remove one extra call to the C compiler at Makefile parse time and (very slightly) speed up builds. Link: http://lkml.kernel.org/r/20190323015227.245455-1-dianders@chromium.org Signed-off-by: Douglas Anderson Reviewed-by: Masahiro Yamada Cc: Douglas Anderson Cc: Jason Wessel Cc: Christophe Leroy Cc: "Peter Zijlstra (Intel)" Cc: Kees Cook Cc: Johannes Weiner Cc: "Gustavo A. R. Silva" Cc: Nicholas Mc Guire , Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell > --- > > kernel/debug/kdb/Makefile | 1 - > kernel/debug/kdb/kdb_main.c | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/kernel/debug/kdb/Makefile b/kernel/debug/kdb/Makefile > index d4fc58f4b88d..efac857c5511 100644 > --- a/kernel/debug/kdb/Makefile > +++ b/kernel/debug/kdb/Makefile > @@ -6,7 +6,6 @@ > # Copyright (c) 2009 Wind River Systems, Inc. All Rights Reserved. > # > > -CCVERSION := $(shell $(CC) -v 2>&1 | sed -ne '$$p') > obj-y := kdb_io.o kdb_main.o kdb_support.o kdb_bt.o gen-kdb_cmds.o kdb_bp.o kdb_debugger.o > obj-$(CONFIG_KDB_KEYBOARD) += kdb_keyboard.o > > diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c > index 82a3b32a7cfc..fc96dbf8d9de 100644 > --- a/kernel/debug/kdb/kdb_main.c > +++ b/kernel/debug/kdb/kdb_main.c > @@ -2522,7 +2522,6 @@ static int kdb_summary(int argc, const char **argv) > kdb_printf("machine %s\n", init_uts_ns.name.machine); > kdb_printf("nodename %s\n", init_uts_ns.name.nodename); > kdb_printf("domainname %s\n", init_uts_ns.name.domainname); > - kdb_printf("ccversion %s\n", __stringify(CCVERSION)); > > now = __ktime_get_real_seconds(); > time64_to_tm(now, 0, &tm); > -- > 2.21.0.392.gf8f6787159e-goog > -- Best Regards Masahiro Yamada