Skip to content

Commit

Permalink
[MIPS] Use kallsyms_lookup_size_offset() instead of kallsyms_lookup()
Browse files Browse the repository at this point in the history
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: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed Oct 19, 2006
1 parent ce9e3d9 commit 55b7428
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions arch/mips/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,8 @@ static int __init frame_info_init(void)
unsigned long size = 0;
#ifdef CONFIG_KALLSYMS
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
schedule_mfi.func = schedule;
schedule_mfi.func_size = size;
Expand Down Expand Up @@ -403,8 +401,6 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
{
unsigned long stack_page;
struct mips_frame_info info;
char *modname;
char namebuf[KSYM_NAME_LEN + 1];
unsigned long size, ofs;
int leaf;
extern void ret_from_irq(void);
Expand Down Expand Up @@ -433,7 +429,7 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
}
return 0;
}
if (!kallsyms_lookup(pc, &size, &ofs, &modname, namebuf))
if (!kallsyms_lookup_size_offset(pc, &size, &ofs))
return 0;
/*
* Return ra if an exception occured at the first instruction
Expand Down

0 comments on commit 55b7428

Please sign in to comment.