score: separate extable.h, switch module.h to it
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 5 Sep 2016 15:39:01 +0000 (11:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 5 Oct 2016 22:38:39 +0000 (18:38 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/score/include/asm/extable.h [new file with mode: 0644]
arch/score/include/asm/module.h
arch/score/include/asm/uaccess.h

diff --git a/arch/score/include/asm/extable.h b/arch/score/include/asm/extable.h
new file mode 100644 (file)
index 0000000..c4423cc
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef _ASM_SCORE_EXTABLE_H
+#define _ASM_SCORE_EXTABLE_H
+
+struct exception_table_entry {
+       unsigned long insn;
+       unsigned long fixup;
+};
+
+struct pt_regs;
+extern int fixup_exception(struct pt_regs *regs);
+#endif
index abf395b..6dc1f29 100644 (file)
@@ -2,7 +2,7 @@
 #define _ASM_SCORE_MODULE_H
 
 #include <linux/list.h>
-#include <asm/uaccess.h>
+#include <asm/extable.h>
 #include <asm-generic/module.h>
 
 struct mod_arch_specific {
index 01aec8c..db58ab9 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/thread_info.h>
+#include <asm/extable.h>
 
 #define VERIFY_READ            0
 #define VERIFY_WRITE           1
@@ -420,12 +421,5 @@ static inline long strnlen_user(const char __user *str, long len)
                return __strnlen_user(str, len);
 }
 
-struct exception_table_entry {
-       unsigned long insn;
-       unsigned long fixup;
-};
-
-extern int fixup_exception(struct pt_regs *regs);
-
 #endif /* __SCORE_UACCESS_H */