Skip to content

Commit

Permalink
kdb: kdb_current_regs should be private
Browse files Browse the repository at this point in the history
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 <dianders@chromium.org>
Link: https://lore.kernel.org/r/20191109111623.2.Iadbfb484e90b557cc4b5ac9890bfca732cd99d77@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
  • Loading branch information
Douglas Anderson authored and Daniel Thompson committed Jan 31, 2020
1 parent b356e89 commit c67c10a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions include/linux/kdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ int kdb_process_cpu(const struct task_struct *p)
return cpu;
}

/* kdb access to register set for stack dumping */
extern struct pt_regs *kdb_current_regs;
#ifdef CONFIG_KALLSYMS
extern const char *kdb_walk_kallsyms(loff_t *pos);
#else /* ! CONFIG_KALLSYMS */
Expand Down
1 change: 1 addition & 0 deletions kernel/debug/kdb/kdb_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ extern void debug_kusage(void);

extern void kdb_set_current_task(struct task_struct *);
extern struct task_struct *kdb_current_task;
extern struct pt_regs *kdb_current_regs;

#ifdef CONFIG_KDB_KEYBOARD
extern void kdb_kbd_cleanup_state(void);
Expand Down

0 comments on commit c67c10a

Please sign in to comment.