Cleanup kdb code to get rid of unused function definitions/prototypes.
Showing the changes to kernel/debug (2 of 2 files). Show all
Unified · Split
| @@ -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); |
| 208 | extern void kdb_ps_suppressed(void); | 208 | extern void kdb_ps_suppressed(void); |
| 209 | extern void kdb_ps1(const struct task_struct *p); | 209 | extern void kdb_ps1(const struct task_struct *p); |
| 210 | extern void kdb_print_nameval(const char *name, unsigned long val); | ||
| 211 | extern void kdb_send_sig(struct task_struct *p, int sig); | 210 | extern void kdb_send_sig(struct task_struct *p, int sig); |
| 212 | extern void kdb_meminfo_proc_show(void); | ||
| 213 | extern char kdb_getchar(void); | 211 | extern char kdb_getchar(void); |
| 214 | extern char *kdb_getstr(char *, size_t, const char *); | 212 | extern char *kdb_getstr(char *, size_t, const char *); |
| 215 | extern void kdb_gdb_state_pass(char *buf); | 213 | extern void kdb_gdb_state_pass(char *buf); |
| @@ -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 | */ | ||
| 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 | |||
| 675 | /* Last ditch allocator for debugging, so we can still debug even when | 657 | /* Last ditch allocator for debugging, so we can still debug even when |
| 676 | * the GFP_ATOMIC pool has been exhausted. The algorithms are tuned | 658 | * the GFP_ATOMIC pool has been exhausted. The algorithms are tuned |
| 677 | * for space usage, not for speed. One smallish memory pool, the free | 659 | * for space usage, not for speed. One smallish memory pool, the free |