]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kdb: Get rid of broken attempt to print CCVERSION in kdb summary
authorDouglas Anderson <dianders@chromium.org>
Sat, 23 Mar 2019 01:52:27 +0000 (18:52 -0700)
committerDaniel Thompson <daniel.thompson@linaro.org>
Sun, 12 May 2019 08:50:43 +0000 (09:50 +0100)
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 <dianders@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
kernel/debug/kdb/Makefile
kernel/debug/kdb/kdb_main.c

index d4fc58f4b88dee4a076a157a0766d090c7415b03..efac857c55119f1252d0a32e956ea47f7d670b04 100644 (file)
@@ -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
 
index 82a3b32a7cfc975ea99dba2eae7bdd7e23d070e9..fc96dbf8d9de95ee02c5c067e1b34dc94641db61 100644 (file)
@@ -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);