[IA64] fix compile error in arch/ia64/mm/extable.c
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 13 Jun 2009 05:20:15 +0000 (14:50 +0930)
committerTony Luck <tony.luck@intel.com>
Mon, 15 Jun 2009 16:17:50 +0000 (09:17 -0700)
ad6561dffa17f17bb68d7207d422c26c381c4313 ("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>
arch/ia64/mm/extable.c

index e95d5ad9285dab575aa10f70e398c1c8368e0316..c99a41e29fe81b859a9384519b9308646624f6e6 100644 (file)
@@ -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)
 {
@@ -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