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
207 unsigned long mask);207 unsigned long mask);
208extern void kdb_ps_suppressed(void);208extern void kdb_ps_suppressed(void);
209extern void kdb_ps1(const struct task_struct *p);209extern void kdb_ps1(const struct task_struct *p);
210extern void kdb_print_nameval(const char *name, unsigned long val);
211extern void kdb_send_sig(struct task_struct *p, int sig);210extern void kdb_send_sig(struct task_struct *p, int sig);
212extern void kdb_meminfo_proc_show(void);
213extern char kdb_getchar(void);211extern char kdb_getchar(void);
214extern char *kdb_getstr(char *, size_t, const char *);212extern char *kdb_getstr(char *, size_t, const char *);
215extern void kdb_gdb_state_pass(char *buf);213extern 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
654 return (mask & kdb_task_state_string(state)) != 0;654 return (mask & kdb_task_state_string(state)) != 0;
655}655}
656 656
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 */
664void 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
675/* Last ditch allocator for debugging, so we can still debug even when657/* Last ditch allocator for debugging, so we can still debug even when
676 * the GFP_ATOMIC pool has been exhausted. The algorithms are tuned658 * the GFP_ATOMIC pool has been exhausted. The algorithms are tuned
677 * for space usage, not for speed. One smallish memory pool, the free659 * for space usage, not for speed. One smallish memory pool, the free