History

kdb: Remove redundant function definitions/prototypes

Cleanup kdb code to get rid of unused function definitions/prototypes.

Sumit Garg committed 5 years ago

Commit d027fdc1 parent 1e28eed2 files · +0 −20Browse files

Showing the changes to kernel/debug (2 of 2 files). Show all

Unified · Split

2 files
  1. kernel/debug/kdb/kdb_private.h +0 −2
  2. kernel/debug/kdb/kdb_support.c +0 −18
kernel/debug/kdb/kdb_private.h+0−2
@@ -207,9 +207,7 @@ extern unsigned long kdb_task_state(const struct task_struct *p, · 206 unmodified lines
207207 unsigned long mask);
208208 extern void kdb_ps_suppressed(void);
209209 extern void kdb_ps1(const struct task_struct *p);
210−extern void kdb_print_nameval(const char *name, unsigned long val);
211210 extern void kdb_send_sig(struct task_struct *p, int sig);
212−extern void kdb_meminfo_proc_show(void);
213211 extern char kdb_getchar(void);
214212 extern char *kdb_getstr(char *, size_t, const char *);
215213 extern void kdb_gdb_state_pass(char *buf);
kernel/debug/kdb/kdb_support.c+0−18
@@ -654,24 +654,6 @@ unsigned long kdb_task_state(const struct task_struct *p, unsigned long mask) · 653 unmodified lines
654654 return (mask & kdb_task_state_string(state)) != 0;
655655 }
656656
657−/*
658− * kdb_print_nameval - Print a name and its value, converting the
659− * value to a symbol lookup if possible.
660− * Inputs:
661− * name field name to print
662− * val value of field
663− */
664−void kdb_print_nameval(const char *name, unsigned long val)
665−{
666− kdb_symtab_t symtab;
667− kdb_printf(" %-11.11s ", name);
668− if (kdbnearsym(val, &symtab))
669− kdb_symbol_print(val, &symtab,
670− KDB_SP_VALUE|KDB_SP_SYMSIZE|KDB_SP_NEWLINE);
671− else
672− kdb_printf("0x%lx\n", val);
673−}
674−
675657 /* Last ditch allocator for debugging, so we can still debug even when
676658 * the GFP_ATOMIC pool has been exhausted. The algorithms are tuned
677659 * for space usage, not for speed. One smallish memory pool, the free