mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 22:36:49 +07:00
unicore32: remove unused pmode argument in c_backtrace()
The pmode parameter isn't used in assembly - remove it. Second argument will be reused for printk() log level. Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Guan Xuetao <gxt@pku.edu.cn> Link: http://lkml.kernel.org/r/20200418201944.482088-38-dima@arista.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1ad87824f4
commit
ee1e99009e
@ -29,7 +29,7 @@ extern void kernel_thread_helper(void);
|
|||||||
extern void __init early_signal_init(void);
|
extern void __init early_signal_init(void);
|
||||||
|
|
||||||
extern asmlinkage void __backtrace(void);
|
extern asmlinkage void __backtrace(void);
|
||||||
extern asmlinkage void c_backtrace(unsigned long fp, int pmode);
|
extern asmlinkage void c_backtrace(unsigned long fp);
|
||||||
|
|
||||||
extern void __show_regs(struct pt_regs *);
|
extern void __show_regs(struct pt_regs *);
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ static void dump_instr(const char *lvl, struct pt_regs *regs)
|
|||||||
|
|
||||||
static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
|
static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
|
||||||
{
|
{
|
||||||
unsigned int fp, mode;
|
unsigned int fp;
|
||||||
int ok = 1;
|
int ok = 1;
|
||||||
|
|
||||||
printk(KERN_DEFAULT "Backtrace: ");
|
printk(KERN_DEFAULT "Backtrace: ");
|
||||||
@ -145,16 +145,12 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
|
|||||||
if (!tsk)
|
if (!tsk)
|
||||||
tsk = current;
|
tsk = current;
|
||||||
|
|
||||||
if (regs) {
|
if (regs)
|
||||||
fp = regs->UCreg_fp;
|
fp = regs->UCreg_fp;
|
||||||
mode = processor_mode(regs);
|
else if (tsk != current)
|
||||||
} else if (tsk != current) {
|
|
||||||
fp = thread_saved_fp(tsk);
|
fp = thread_saved_fp(tsk);
|
||||||
mode = 0x10;
|
else
|
||||||
} else {
|
|
||||||
asm("mov %0, fp" : "=r" (fp) : : "cc");
|
asm("mov %0, fp" : "=r" (fp) : : "cc");
|
||||||
mode = 0x10;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
printk("no frame pointer");
|
printk("no frame pointer");
|
||||||
@ -167,7 +163,7 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
|
|||||||
printk("\n");
|
printk("\n");
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
c_backtrace(fp, mode);
|
c_backtrace(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void show_stack(struct task_struct *tsk, unsigned long *sp)
|
void show_stack(struct task_struct *tsk, unsigned long *sp)
|
||||||
|
Loading…
Reference in New Issue
Block a user