+ kdb-get-rid-of-broken-attempt-to-print-ccversion-in-kdb-summary.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: kdb: det rid of broken attempt to print CCVERSION in kdb summary
has been added to the -mm tree.  Its filename is
     kdb-get-rid-of-broken-attempt-to-print-ccversion-in-kdb-summary.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/kdb-get-rid-of-broken-attempt-to-print-ccversion-in-kdb-summary.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/kdb-get-rid-of-broken-attempt-to-print-ccversion-in-kdb-summary.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Douglas Anderson <dianders@xxxxxxxxxxxx>
Subject: 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@xxxxxxxxxxxx
Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
Cc: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
Cc: Douglas Anderson <dianders@xxxxxxxxxxxx>
Cc: Jason Wessel <jason.wessel@xxxxxxxxxxxxx>
Cc: Christophe Leroy <christophe.leroy@xxxxxx>
Cc: "Peter Zijlstra (Intel)" <peterz@xxxxxxxxxxxxx>
Cc: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
Cc: "Gustavo A. R. Silva" <gustavo@xxxxxxxxxxxxxx>
Cc: Nicholas Mc Guire <hofrat@xxxxxxxxx>,
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/debug/kdb/Makefile   |    1 -
 kernel/debug/kdb/kdb_main.c |    1 -
 2 files changed, 2 deletions(-)

--- a/kernel/debug/kdb/kdb_main.c~kdb-get-rid-of-broken-attempt-to-print-ccversion-in-kdb-summary
+++ a/kernel/debug/kdb/kdb_main.c
@@ -2522,7 +2522,6 @@ static int kdb_summary(int argc, const c
 	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);
--- a/kernel/debug/kdb/Makefile~kdb-get-rid-of-broken-attempt-to-print-ccversion-in-kdb-summary
+++ a/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
 
_

Patches currently in -mm which might be from dianders@xxxxxxxxxxxx are

kdb-get-rid-of-broken-attempt-to-print-ccversion-in-kdb-summary.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux