Skip to content

Commit

Permalink
score: separate extable.h, switch module.h to it
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Oct 5, 2016
1 parent 29abfbd commit 88dd4a7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
11 changes: 11 additions & 0 deletions arch/score/include/asm/extable.h
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion arch/score/include/asm/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 1 addition & 7 deletions arch/score/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */

0 comments on commit 88dd4a7

Please sign in to comment.