diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-12 02:38:39 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-12 02:38:39 -0400 |
| commit | 4cdf8dbe2d4b3891a9abd9f9ec32acbe58de0cf6 (patch) | |
| tree | 006204597d8aab019a8831da3f38556ca9dcaab1 /arch/mips/include/asm | |
| parent | 6b25e21fa6f26d0f0d45f161d169029411c84286 (diff) | |
| parent | aa7eb9ad32f84ce91a92f5c0196ae7adb5611ac4 (diff) | |
Merge branch 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull uaccess.h prepwork from Al Viro:
"Preparations to tree-wide switch to use of linux/uaccess.h (which,
obviously, will allow to start unifying stuff for real). The last step
there, ie
PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>'
sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \
`git grep -l "$PATT"|grep -v ^include/linux/uaccess.h`
is not taken here - I would prefer to do it once just before or just
after -rc1. However, everything should be ready for it"
* 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
remove a stray reference to asm/uaccess.h in docs
sparc64: separate extable_64.h, switch elf_64.h to it
score: separate extable.h, switch module.h to it
mips: separate extable.h, switch module.h to it
x86: separate extable.h, switch sections.h to it
remove stray include of asm/uaccess.h from cacheflush.h
mn10300: remove a bogus processor.h->uaccess.h include
xtensa: split uaccess.h into C and asm sides
bonding: quit messing with IOCTL
kill __kernel_ds_p off
mn10300: finish verify_area() off
frv: move HAVE_ARCH_UNMAPPED_AREA to pgtable.h
exceptions: detritus removal
Diffstat (limited to 'arch/mips/include/asm')
| -rw-r--r-- | arch/mips/include/asm/extable.h | 13 | ||||
| -rw-r--r-- | arch/mips/include/asm/module.h | 2 | ||||
| -rw-r--r-- | arch/mips/include/asm/uaccess.h | 9 |
3 files changed, 15 insertions, 9 deletions
diff --git a/arch/mips/include/asm/extable.h b/arch/mips/include/asm/extable.h new file mode 100644 index 000000000000..dce7a627a925 --- /dev/null +++ b/arch/mips/include/asm/extable.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #ifndef _ASM_EXTABLE_H | ||
| 2 | #define _ASM_EXTABLE_H | ||
| 3 | |||
| 4 | struct exception_table_entry | ||
| 5 | { | ||
| 6 | unsigned long insn; | ||
| 7 | unsigned long nextinsn; | ||
| 8 | }; | ||
| 9 | |||
| 10 | struct pt_regs; | ||
| 11 | extern int fixup_exception(struct pt_regs *regs); | ||
| 12 | |||
| 13 | #endif | ||
diff --git a/arch/mips/include/asm/module.h b/arch/mips/include/asm/module.h index 0aaf9a01ea50..702c273e67a9 100644 --- a/arch/mips/include/asm/module.h +++ b/arch/mips/include/asm/module.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
| 5 | #include <linux/elf.h> | 5 | #include <linux/elf.h> |
| 6 | #include <asm/uaccess.h> | 6 | #include <asm/extable.h> |
| 7 | 7 | ||
| 8 | struct mod_arch_specific { | 8 | struct mod_arch_specific { |
| 9 | /* Data Bus Error exception tables */ | 9 | /* Data Bus Error exception tables */ |
diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h index 21a2aaba20d5..4daf839cd8a8 100644 --- a/arch/mips/include/asm/uaccess.h +++ b/arch/mips/include/asm/uaccess.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include <linux/thread_info.h> | 16 | #include <linux/thread_info.h> |
| 17 | #include <linux/string.h> | 17 | #include <linux/string.h> |
| 18 | #include <asm/asm-eva.h> | 18 | #include <asm/asm-eva.h> |
| 19 | #include <asm/extable.h> | ||
| 19 | 20 | ||
| 20 | /* | 21 | /* |
| 21 | * The fs value determines whether argument validity checking should be | 22 | * The fs value determines whether argument validity checking should be |
| @@ -1485,12 +1486,4 @@ static inline long strnlen_user(const char __user *s, long n) | |||
| 1485 | return res; | 1486 | return res; |
| 1486 | } | 1487 | } |
| 1487 | 1488 | ||
| 1488 | struct exception_table_entry | ||
| 1489 | { | ||
| 1490 | unsigned long insn; | ||
| 1491 | unsigned long nextinsn; | ||
| 1492 | }; | ||
| 1493 | |||
| 1494 | extern int fixup_exception(struct pt_regs *regs); | ||
| 1495 | |||
| 1496 | #endif /* _ASM_UACCESS_H */ | 1489 | #endif /* _ASM_UACCESS_H */ |
