Skip to content

Commit

Permalink
kdb: cleanup unused variables missed in the original kdb merge
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Wessel committed Aug 1, 2011
1 parent 02f8c6a commit 3bdb65e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 2 additions & 3 deletions kernel/debug/kdb/kdb_bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ kdb_bt(int argc, const char **argv)
unsigned long addr;
long offset;

kdbgetintenv("BTARGS", &argcount); /* Arguments to print */
kdbgetintenv("BTAPROMPT", &btaprompt); /* Prompt after each
* proc in bta */
/* Prompt after each proc in bta */
kdbgetintenv("BTAPROMPT", &btaprompt);

if (strcmp(argv[0], "bta") == 0) {
struct task_struct *g, *p;
Expand Down
4 changes: 0 additions & 4 deletions kernel/debug/kdb/kdb_cmds
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@ defcmd dumpcommon "" "Common kdb debugging"
endefcmd

defcmd dumpall "" "First line debugging"
set BTSYMARG 1
set BTARGS 9
pid R
-dumpcommon
-bta
endefcmd

defcmd dumpcpu "" "Same as dumpall but only tasks on cpus"
set BTSYMARG 1
set BTARGS 9
pid R
-dumpcommon
-btc
Expand Down
2 changes: 1 addition & 1 deletion kernel/debug/kdb/kdb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ static char *__env[] = {
#endif
"RADIX=16",
"MDCOUNT=8", /* lines of md output */
"BTARGS=9", /* 9 possible args in bt */
KDB_PLATFORM_ENV,
"DTABCOUNT=30",
"NOSECT=1",
Expand All @@ -172,6 +171,7 @@ static char *__env[] = {
(char *)0,
(char *)0,
(char *)0,
(char *)0,
};

static const int __nenv = (sizeof(__env) / sizeof(char *));
Expand Down

0 comments on commit 3bdb65e

Please sign in to comment.