Skip to content

Commit 1dcd775

Browse files
rustyrussellaegl
authored andcommitted
[IA64] fix compile error in arch/ia64/mm/extable.c
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 <[email protected]> Signed-off-by: Tony Luck <[email protected]>
1 parent 45e3e19 commit 1dcd775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/ia64/mm/extable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <linux/sort.h>
99

1010
#include <asm/uaccess.h>
11-
#include <asm/module.h>
11+
#include <linux/module.h>
1212

1313
static int cmp_ex(const void *a, const void *b)
1414
{
@@ -55,7 +55,7 @@ void sort_extable (struct exception_table_entry *start,
5555

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

6161
#ifdef CONFIG_MODULES

0 commit comments

Comments
 (0)