Skip to content

Commit

Permalink
[IA64] fix compile error in arch/ia64/mm/extable.c
Browse files Browse the repository at this point in the history
ad6561d ("module: trim exception table on init
free.") put a bogus trim_init_extable() function into ia64 which didn't compile.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Rusty Russell authored and Tony Luck committed Jun 15, 2009
1 parent 45e3e19 commit 1dcd775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ia64/mm/extable.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <linux/sort.h>

#include <asm/uaccess.h>
#include <asm/module.h>
#include <linux/module.h>

static int cmp_ex(const void *a, const void *b)
{
Expand Down Expand Up @@ -55,7 +55,7 @@ void sort_extable (struct exception_table_entry *start,

static inline unsigned long ex_to_addr(const struct exception_table_entry *x)
{
return (unsigned long)&x->insn + x->insn;
return (unsigned long)&x->addr + x->addr;
}

#ifdef CONFIG_MODULES
Expand Down

0 comments on commit 1dcd775

Please sign in to comment.