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:
Dmitry Safonov
2020-06-08 21:32:29 -07:00
committed by Linus Torvalds
parent fe1993a001
commit 9cb8f069de
39 changed files with 52 additions and 205 deletions

View File

@@ -145,12 +145,10 @@ void show_regs(struct pt_regs *r)
}
/*
* The show_stack(), show_stack_loglvl() are external APIs which
* we do not use ourselves.
* The show_stack() is external API which we do not use ourselves.
* The oops is printed in die_if_kernel.
*/
void show_stack_loglvl(struct task_struct *tsk, unsigned long *_ksp,
const char *loglvl)
void show_stack(struct task_struct *tsk, unsigned long *_ksp, const char *loglvl)
{
unsigned long pc, fp;
unsigned long task_base;
@@ -179,11 +177,6 @@ void show_stack_loglvl(struct task_struct *tsk, unsigned long *_ksp,
printk("%s\n", loglvl);
}
void show_stack(struct task_struct *task, unsigned long *sp)
{
show_stack_loglvl(task, sp, KERN_DEFAULT);
}
/*
* Free current thread data structures etc..
*/

View File

@@ -195,7 +195,7 @@ void show_regs(struct pt_regs *regs)
regs->u_regs[15]);
printk("RPC: <%pS>\n", (void *) regs->u_regs[15]);
show_regwindow(regs);
show_stack(current, (unsigned long *) regs->u_regs[UREG_FP]);
show_stack(current, (unsigned long *)regs->u_regs[UREG_FP], KERN_DEFAULT);
}
union global_cpu_snapshot global_cpu_snapshot[NR_CPUS];

View File

@@ -2453,8 +2453,7 @@ static void user_instruction_dump(unsigned int __user *pc)
printk("\n");
}
void show_stack_loglvl(struct task_struct *tsk, unsigned long *_ksp,
const char *loglvl)
void show_stack(struct task_struct *tsk, unsigned long *_ksp, const char *loglvl)
{
unsigned long fp, ksp;
struct thread_info *tp;
@@ -2514,11 +2513,6 @@ void show_stack_loglvl(struct task_struct *tsk, unsigned long *_ksp,
} while (++count < 16);
}
void show_stack(struct task_struct *tsk, unsigned long *_ksp)
{
show_stack_loglvl(task, sp, KERN_DEFAULT);
}
static inline struct reg_window *kernel_stack_up(struct reg_window *rw)
{
unsigned long fp = rw->ins[6];