Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2442594ybb; Sat, 30 Mar 2019 05:15:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ+/0OLrNs4ZX5jr0jyIozIYgGO4tFg/NoVvj7odqsZhmAwYEhCHYooiNWyWjA7qcrFI2T X-Received: by 2002:a62:6086:: with SMTP id u128mr27186065pfb.148.1553948155619; Sat, 30 Mar 2019 05:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553948155; cv=none; d=google.com; s=arc-20160816; b=vQvUCBBBZh2wmKACF7C2rdD45G/WTaPjygERaIgW1RmoMvn2G6yFGHMSlB7J/62TvD CF9LqZxmkCE1vGFeYKnN6UDpoBXuHifntziwBi89zTxgCVJ85/b+akDs0fvs4RJRRPTC govQkGOmy6F9gnp3Umyt77cNaCfbLg7F2NUOpQg7e9Xc6hrco0eHdyzWxBkdar05INrb tPBYilojzNrb/nVd8Tj5Mv8gERfRxiUlvCHg5lgwOIasmWbME+ehBc3AmcLQ7QQcjRxU XwKNAY5Kgp/zb2zJ+2x8wF8be060Y+TDdFwvdXF/0RXT60S2Q5tuo7zEMG0xRtKF19vf QjAw== 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=FvcjRSwm+l7BcuSlqeVv/mbXcW2eWKSjZsOPYlTDy5o=; b=t+TiAEJ/JGado0WTFI5LjSzBb4cB2C4yuYNHKvsKZtolq67F1LwLVtPNmlswgsSXL8 IqgmHt4frD/BP4CBR1BFDyb7X0o/SBEktojvPCGyzFiTNI7msYr7EWD2yVQ8s0IEbiRL bdHztIRjZV7qMd1bQC7/sRjVWgqsKiGwlcWEOewqzwlPBbFUyscbn7DLgnXnHaX+Gbbp LwwvNDHFQpAnGnTp1K6pGhP3QZNe7PKx/Uc5ih09JpgZcduM2zmS0C74faF5HM4+i4hC ASZkNOYwIoREURQ8gzynTtdBhO+YA/RNfQW7pytk2etU8ufe4bm1BS1S1bWvFbPKVPbv b3Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=FfK9mrK9; 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 g31si4402760pgm.141.2019.03.30.05.15.39; Sat, 30 Mar 2019 05:15:55 -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=FfK9mrK9; 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 S1730698AbfC3MOz (ORCPT + 99 others); Sat, 30 Mar 2019 08:14:55 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:52463 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730535AbfC3MOy (ORCPT ); Sat, 30 Mar 2019 08:14:54 -0400 Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x2UCEh92006588 for ; Sat, 30 Mar 2019 21:14:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x2UCEh92006588 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1553948084; bh=FvcjRSwm+l7BcuSlqeVv/mbXcW2eWKSjZsOPYlTDy5o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FfK9mrK9uHifnafe/Syjn+OTbLsjjKABEoL8m8AAETaidDkKwSmRDD/buTnJiJjBn SPzM9bkcJQOuaSfPhwJ3qIBOp/poSVxib34iEmb5bB6ImoAyByZfFZwOX9Rj45Fjth iHHQQdbb3PpnQvqcFbZqwgAbxbHJEmBf6H8uBV++jD9p3RqoVcILZvof2VzRvGm6fE 7XMtZY6l7/5X8Cqn43KwVcBODqAq/rYefiSRkM3YvH9SB2qs9maO0xSawEbo25KkZb Ks1BKiGBL48rfOYNuQAof6HW6mwSpCO1XP1Kxm+ZrCBPOJeDwZ+7kFKgIZQsS2n+me kGD9qF1GHJmSQ== X-Nifty-SrcIP: [209.85.222.54] Received: by mail-ua1-f54.google.com with SMTP id p13so1571381uaa.11 for ; Sat, 30 Mar 2019 05:14:43 -0700 (PDT) X-Gm-Message-State: APjAAAUoODNnWZmSMJemBDHZDlaXNlTh4lU0oyOWLgj739DpF1nr6Tj0 cGO58SC5JbMJMl1sg4U2Wvx+w5uTeNlp/KMmy70= X-Received: by 2002:ab0:348a:: with SMTP id c10mr30776275uar.25.1553948082679; Sat, 30 Mar 2019 05:14:42 -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: Sat, 30 Mar 2019 21:14:07 +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 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 , Andrew Morton 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 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 > --- Reviewed-by: Masahiro Yamada > 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