Commit 3bdb65ec95e6cccffc40102d7c003047c45da90c

Authored by Jason Wessel
1 parent 02f8c6aee8

kdb: cleanup unused variables missed in the original kdb merge

The BTARGS and BTSYMARG variables do not have any function in the
mainline version of kdb.

Reported-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>

Showing 3 changed files with 3 additions and 8 deletions Side-by-side Diff

kernel/debug/kdb/kdb_bt.c
... ... @@ -112,9 +112,8 @@
112 112 unsigned long addr;
113 113 long offset;
114 114  
115   - kdbgetintenv("BTARGS", &argcount); /* Arguments to print */
116   - kdbgetintenv("BTAPROMPT", &btaprompt); /* Prompt after each
117   - * proc in bta */
  115 + /* Prompt after each proc in bta */
  116 + kdbgetintenv("BTAPROMPT", &btaprompt);
118 117  
119 118 if (strcmp(argv[0], "bta") == 0) {
120 119 struct task_struct *g, *p;
kernel/debug/kdb/kdb_cmds
... ... @@ -18,16 +18,12 @@
18 18 endefcmd
19 19  
20 20 defcmd dumpall "" "First line debugging"
21   - set BTSYMARG 1
22   - set BTARGS 9
23 21 pid R
24 22 -dumpcommon
25 23 -bta
26 24 endefcmd
27 25  
28 26 defcmd dumpcpu "" "Same as dumpall but only tasks on cpus"
29   - set BTSYMARG 1
30   - set BTARGS 9
31 27 pid R
32 28 -dumpcommon
33 29 -btc
kernel/debug/kdb/kdb_main.c
... ... @@ -145,10 +145,10 @@
145 145 #endif
146 146 "RADIX=16",
147 147 "MDCOUNT=8", /* lines of md output */
148   - "BTARGS=9", /* 9 possible args in bt */
149 148 KDB_PLATFORM_ENV,
150 149 "DTABCOUNT=30",
151 150 "NOSECT=1",
  151 + (char *)0,
152 152 (char *)0,
153 153 (char *)0,
154 154 (char *)0,