History

kdb: kdb_current_regs should be private

As of the patch ("MIPS: kdb: Remove old workaround for backtracing on other CPUs") there is no reason for kdb_current_regs to be in the public "kdb.h". Let's move it next to kdb_current_task.

Douglas Anderson committed 7 years ago

Commit c67c10a1 parent b356e892 files · +1 −2Browse files

Unified · Split

2 files
  1. include/linux/kdb.h +0 −2
  2. kernel/debug/kdb/kdb_private.h +1 −0
include/linux/kdb.h+0−2
@@ -183,8 +183,6 @@ int kdb_process_cpu(const struct task_struct *p) · 182 unmodified lines
183 return cpu;183 return cpu;
184}184}
185 185
186/* kdb access to register set for stack dumping */
187extern struct pt_regs *kdb_current_regs;
188#ifdef CONFIG_KALLSYMS186#ifdef CONFIG_KALLSYMS
189extern const char *kdb_walk_kallsyms(loff_t *pos);187extern const char *kdb_walk_kallsyms(loff_t *pos);
190#else /* ! CONFIG_KALLSYMS */188#else /* ! CONFIG_KALLSYMS */
kernel/debug/kdb/kdb_private.h+1−0
@@ -242,6 +242,7 @@ extern void debug_kusage(void); · 241 unmodified lines
242 242
243extern void kdb_set_current_task(struct task_struct *);243extern void kdb_set_current_task(struct task_struct *);
244extern struct task_struct *kdb_current_task;244extern struct task_struct *kdb_current_task;
245extern struct pt_regs *kdb_current_regs;
245 246
246#ifdef CONFIG_KDB_KEYBOARD247#ifdef CONFIG_KDB_KEYBOARD
247extern void kdb_kbd_cleanup_state(void);248extern void kdb_kbd_cleanup_state(void);