diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-05 11:39:01 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-05 18:38:39 -0400 |
commit | 88dd4a748da7682966f3e52e5dde9a1b1c0bc9d8 (patch) | |
tree | 790103a5e91a361f83dcfe165fbc9d5dbcb6170d /arch/score | |
parent | 29abfbd9cbba798a89c9f9f977d7d63bff5a5d04 (diff) |
score: separate extable.h, switch module.h to it
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/score')
-rw-r--r-- | arch/score/include/asm/extable.h | 11 | ||||
-rw-r--r-- | arch/score/include/asm/module.h | 2 | ||||
-rw-r--r-- | arch/score/include/asm/uaccess.h | 8 |
3 files changed, 13 insertions, 8 deletions
diff --git a/arch/score/include/asm/extable.h b/arch/score/include/asm/extable.h new file mode 100644 index 000000000000..c4423ccf830d --- /dev/null +++ b/arch/score/include/asm/extable.h | |||
@@ -0,0 +1,11 @@ | |||
1 | #ifndef _ASM_SCORE_EXTABLE_H | ||
2 | #define _ASM_SCORE_EXTABLE_H | ||
3 | |||
4 | struct exception_table_entry { | ||
5 | unsigned long insn; | ||
6 | unsigned long fixup; | ||
7 | }; | ||
8 | |||
9 | struct pt_regs; | ||
10 | extern int fixup_exception(struct pt_regs *regs); | ||
11 | #endif | ||
diff --git a/arch/score/include/asm/module.h b/arch/score/include/asm/module.h index abf395bbfaba..6dc1f2935eef 100644 --- a/arch/score/include/asm/module.h +++ b/arch/score/include/asm/module.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define _ASM_SCORE_MODULE_H | 2 | #define _ASM_SCORE_MODULE_H |
3 | 3 | ||
4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
5 | #include <asm/uaccess.h> | 5 | #include <asm/extable.h> |
6 | #include <asm-generic/module.h> | 6 | #include <asm-generic/module.h> |
7 | 7 | ||
8 | struct mod_arch_specific { | 8 | struct mod_arch_specific { |
diff --git a/arch/score/include/asm/uaccess.h b/arch/score/include/asm/uaccess.h index 01aec8ccde83..db58ab98ec4b 100644 --- a/arch/score/include/asm/uaccess.h +++ b/arch/score/include/asm/uaccess.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
5 | #include <linux/errno.h> | 5 | #include <linux/errno.h> |
6 | #include <linux/thread_info.h> | 6 | #include <linux/thread_info.h> |
7 | #include <asm/extable.h> | ||
7 | 8 | ||
8 | #define VERIFY_READ 0 | 9 | #define VERIFY_READ 0 |
9 | #define VERIFY_WRITE 1 | 10 | #define VERIFY_WRITE 1 |
@@ -420,12 +421,5 @@ static inline long strnlen_user(const char __user *str, long len) | |||
420 | return __strnlen_user(str, len); | 421 | return __strnlen_user(str, len); |
421 | } | 422 | } |
422 | 423 | ||
423 | struct exception_table_entry { | ||
424 | unsigned long insn; | ||
425 | unsigned long fixup; | ||
426 | }; | ||
427 | |||
428 | extern int fixup_exception(struct pt_regs *regs); | ||
429 | |||
430 | #endif /* __SCORE_UACCESS_H */ | 424 | #endif /* __SCORE_UACCESS_H */ |
431 | 425 | ||