Skip to content

Commit c67c10a

Browse files
diandersDaniel Thompson
authored andcommitted
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. Signed-off-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/20191109111623.2.Iadbfb484e90b557cc4b5ac9890bfca732cd99d77@changeid Signed-off-by: Daniel Thompson <[email protected]>
1 parent b356e89 commit c67c10a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/linux/kdb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ int kdb_process_cpu(const struct task_struct *p)
183183
return cpu;
184184
}
185185

186-
/* kdb access to register set for stack dumping */
187-
extern struct pt_regs *kdb_current_regs;
188186
#ifdef CONFIG_KALLSYMS
189187
extern const char *kdb_walk_kallsyms(loff_t *pos);
190188
#else /* ! CONFIG_KALLSYMS */

kernel/debug/kdb/kdb_private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ extern void debug_kusage(void);
242242

243243
extern void kdb_set_current_task(struct task_struct *);
244244
extern struct task_struct *kdb_current_task;
245+
extern struct pt_regs *kdb_current_regs;
245246

246247
#ifdef CONFIG_KDB_KEYBOARD
247248
extern void kdb_kbd_cleanup_state(void);

0 commit comments

Comments
 (0)