riscv: use asm-generic/extable.h
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2019 09:14:32 +0000 (11:14 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Thu, 25 Apr 2019 21:51:09 +0000 (14:51 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/Kbuild
arch/riscv/include/asm/uaccess.h

index cccd12cf27d44d134f274f49067d294cde3498b0..5a7a19d9aa7fc27a0a0046e62e7ac3e9da19f034 100644 (file)
@@ -4,6 +4,7 @@ generic-y += compat.h
 generic-y += cputime.h
 generic-y += device.h
 generic-y += div64.h
+generic-y += extable.h
 generic-y += dma.h
 generic-y += dma-contiguous.h
 generic-y += dma-mapping.h
index fb53a8089e769473434493d59bc408079dcbb519..cc5b253d4c57b68e7d33f3bb97b02769a45d8fda 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/compiler.h>
 #include <linux/thread_info.h>
 #include <asm/byteorder.h>
+#include <asm/extable.h>
 #include <asm/asm.h>
 
 #define __enable_user_access()                                                 \
@@ -98,12 +99,6 @@ static inline int __access_ok(unsigned long addr, unsigned long size)
  * on our cache or tlb entries.
  */
 
-struct exception_table_entry {
-       unsigned long insn, fixup;
-};
-
-extern int fixup_exception(struct pt_regs *state);
-
 #if defined(__LITTLE_ENDIAN)
 #define __MSW  1
 #define __LSW  0