ia64: ensure exception table search users include extable.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sat, 23 Jul 2016 18:01:45 +0000 (14:01 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 24 Jan 2017 17:41:45 +0000 (12:41 -0500)
We start with a delete of a duplicate prototype in asm/exception.h
that no longer needs to exist, as it duplicates content in extable.h
and since that header is so small, there is no point trying to
avoid using it.

Then we make sure anyone using search_exception_tables directly or
via the ia64_done_with_exception macro has included extable.h

In the process, we remove an include of moduleloader.h that was
apparently not really required; it would have been fetching in
module.h and hence the previous location of the exception search
function prototypes, but we need not rely on that anymore.

Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: linux-ia64@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/ia64/include/asm/exception.h
arch/ia64/kernel/kprobes.c
arch/ia64/kernel/traps.c
arch/ia64/kernel/unaligned.c
arch/ia64/mm/fault.c

index d90236090e8cab56829c5c3f2d0699e883977987..6bb246dcdaeb8dad362e7c4ab858a7f15336bec7 100644 (file)
@@ -19,7 +19,6 @@ struct exception_table_entry;
 
 extern void ia64_handle_exception(struct pt_regs *regs,
                                  const struct exception_table_entry *e);
-extern const struct exception_table_entry *search_exception_tables(unsigned long addr);
 
 #define ia64_done_with_exception(regs)                                   \
 ({                                                                       \
index 55b18e1b67a877842865d785138a32769bc5a476..f5f3a5e6fcd19d78c5f694ff7bbcae2160d93a2f 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/preempt.h>
-#include <linux/moduleloader.h>
+#include <linux/extable.h>
 #include <linux/kdebug.h>
 
 #include <asm/pgtable.h>
index d3e1f1ee465fb7221ea750afe59f3c74d5f3ef38..8981ce98afb365c43bfe5ab1339cb34ea582f291 100644 (file)
@@ -12,7 +12,8 @@
 #include <linux/sched.h>
 #include <linux/tty.h>
 #include <linux/vt_kern.h>             /* For unblank_screen() */
-#include <linux/module.h>       /* for EXPORT_SYMBOL */
+#include <linux/export.h>
+#include <linux/extable.h>
 #include <linux/hardirq.h>
 #include <linux/kprobes.h>
 #include <linux/delay.h>               /* for ssleep() */
index e697403b0ec1185bf683b2a82e8deccbdae40a6c..99348d7f2255ce1cd50c8ba111630126e9a89e03 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/tty.h>
+#include <linux/extable.h>
 #include <linux/ratelimit.h>
 #include <linux/uaccess.h>
 
index 52b41dad9704246b38d4b0d7e1ddf57050b428d2..7f2feb21753c8be1c6073072440cb5ef8d6a4309 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
+#include <linux/extable.h>
 #include <linux/interrupt.h>
 #include <linux/kprobes.h>
 #include <linux/kdebug.h>