diff mbox series

[1/9] riscv: use asm-generic/extable.h

Message ID 20190411115623.5749-2-hch@lst.de (mailing list archive)
State New, archived
Headers show
Series [1/9] riscv: use asm-generic/extable.h | expand

Commit Message

Christoph Hellwig April 11, 2019, 11:56 a.m. UTC
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 arch/riscv/include/asm/Kbuild    | 1 +
 arch/riscv/include/asm/uaccess.h | 7 +------
 2 files changed, 2 insertions(+), 6 deletions(-)

Comments

Paul Walmsley April 25, 2019, 7 p.m. UTC | #1
On Thu, 11 Apr 2019, Christoph Hellwig wrote:

> Signed-off-by: Christoph Hellwig <hch@lst.de>

Usually we'd nag about 

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst#n102


Otherwise,

Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>


- Paul

> ---
>  arch/riscv/include/asm/Kbuild    | 1 +
>  arch/riscv/include/asm/uaccess.h | 7 +------
>  2 files changed, 2 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/riscv/include/asm/Kbuild b/arch/riscv/include/asm/Kbuild
> index cccd12cf27d4..5a7a19d9aa7f 100644
> --- a/arch/riscv/include/asm/Kbuild
> +++ b/arch/riscv/include/asm/Kbuild
> @@ -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
> diff --git a/arch/riscv/include/asm/uaccess.h b/arch/riscv/include/asm/uaccess.h
> index fb53a8089e76..cc5b253d4c57 100644
> --- a/arch/riscv/include/asm/uaccess.h
> +++ b/arch/riscv/include/asm/uaccess.h
> @@ -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
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
>
diff mbox series

Patch

diff --git a/arch/riscv/include/asm/Kbuild b/arch/riscv/include/asm/Kbuild
index cccd12cf27d4..5a7a19d9aa7f 100644
--- a/arch/riscv/include/asm/Kbuild
+++ b/arch/riscv/include/asm/Kbuild
@@ -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
diff --git a/arch/riscv/include/asm/uaccess.h b/arch/riscv/include/asm/uaccess.h
index fb53a8089e76..cc5b253d4c57 100644
--- a/arch/riscv/include/asm/uaccess.h
+++ b/arch/riscv/include/asm/uaccess.h
@@ -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