Skip to content

Commit d027fdc

Browse files
b49020Daniel Thompson
authored andcommitted
kdb: Remove redundant function definitions/prototypes
Cleanup kdb code to get rid of unused function definitions/prototypes. Signed-off-by: Sumit Garg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Daniel Thompson <[email protected]>
1 parent 1e28eed commit d027fdc

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

kernel/debug/kdb/kdb_private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ extern unsigned long kdb_task_state(const struct task_struct *p,
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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -654,24 +654,6 @@ unsigned long kdb_task_state(const struct task_struct *p, unsigned long mask)
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

0 commit comments

Comments
 (0)