kernel: rename show_stack_loglvl() => show_stack()
Now the last users of show_stack() got converted to use an explicit log level, show_stack_loglvl() can drop it's redundant suffix and become once again well known show_stack(). Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/20200418201944.482088-51-dima@arista.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
fe1993a001
commit
9cb8f069de
@@ -1456,7 +1456,7 @@ void show_regs(struct pt_regs * regs)
|
||||
printk("NIP ["REG"] %pS\n", regs->nip, (void *)regs->nip);
|
||||
printk("LR ["REG"] %pS\n", regs->link, (void *)regs->link);
|
||||
#endif
|
||||
show_stack(current, (unsigned long *) regs->gpr[1]);
|
||||
show_stack(current, (unsigned long *) regs->gpr[1], KERN_DEFAULT);
|
||||
if (!user_mode(regs))
|
||||
show_instructions(regs);
|
||||
}
|
||||
@@ -2063,8 +2063,8 @@ unsigned long get_wchan(struct task_struct *p)
|
||||
|
||||
static int kstack_depth_to_print = CONFIG_PRINT_STACK_DEPTH;
|
||||
|
||||
void show_stack_loglvl(struct task_struct *tsk, unsigned long *stack,
|
||||
const char *loglvl)
|
||||
void show_stack(struct task_struct *tsk, unsigned long *stack,
|
||||
const char *loglvl)
|
||||
{
|
||||
unsigned long sp, ip, lr, newsp;
|
||||
int count = 0;
|
||||
@@ -2133,11 +2133,6 @@ void show_stack_loglvl(struct task_struct *tsk, unsigned long *stack,
|
||||
put_task_stack(tsk);
|
||||
}
|
||||
|
||||
void show_stack(struct task_struct *tsk, unsigned long *stack)
|
||||
{
|
||||
show_stack_loglvl(tsk, stack, KERN_DEFAULT);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PPC64
|
||||
/* Called with hard IRQs off */
|
||||
void notrace __ppc64_runlatch_on(void)
|
||||
|
Reference in New Issue
Block a user