Commit 55b74283 authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle

[MIPS] Use kallsyms_lookup_size_offset() instead of kallsyms_lookup()

This new routine doesn't lookup for symbol names. So we needn't
to pass any char buffers or pointer since we don't care about
names.
Signed-off-by: default avatarFranck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent ce9e3d99
...@@ -358,10 +358,8 @@ static int __init frame_info_init(void) ...@@ -358,10 +358,8 @@ static int __init frame_info_init(void)
unsigned long size = 0; unsigned long size = 0;
#ifdef CONFIG_KALLSYMS #ifdef CONFIG_KALLSYMS
unsigned long ofs; unsigned long ofs;
char *modname;
char namebuf[KSYM_NAME_LEN + 1];
kallsyms_lookup((unsigned long)schedule, &size, &ofs, &modname, namebuf); kallsyms_lookup_size_offset((unsigned long)schedule, &size, &ofs);
#endif #endif
schedule_mfi.func = schedule; schedule_mfi.func = schedule;
schedule_mfi.func_size = size; schedule_mfi.func_size = size;
...@@ -403,8 +401,6 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp, ...@@ -403,8 +401,6 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
{ {
unsigned long stack_page; unsigned long stack_page;
struct mips_frame_info info; struct mips_frame_info info;
char *modname;
char namebuf[KSYM_NAME_LEN + 1];
unsigned long size, ofs; unsigned long size, ofs;
int leaf; int leaf;
extern void ret_from_irq(void); extern void ret_from_irq(void);
...@@ -433,7 +429,7 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp, ...@@ -433,7 +429,7 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
} }
return 0; return 0;
} }
if (!kallsyms_lookup(pc, &size, &ofs, &modname, namebuf)) if (!kallsyms_lookup_size_offset(pc, &size, &ofs))
return 0; return 0;
/* /*
* Return ra if an exception occured at the first instruction * Return ra if an exception occured at the first instruction
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment