Re: [RFC PATCH 0/3] arc: remove CONFIG_SET_FS

2022-02-01 Thread Vineet Gupta
On 2/1/22 06:55, Sergey Matyukevich wrote: Hi all, This patch series removes SET_FS support for arc. Sergey Matyukevich (3): arc: use BUILD_BUG for invalid sizes in get_user/put_user arc: provide __{get,put}_kernel_nofault arc: remove set_fs() arch/arc/Kconfig |

Re: [RFC PATCH 1/3] arc: use BUILD_BUG for invalid sizes in get_user/put_user

2022-02-01 Thread Christoph Hellwig
On Tue, Feb 01, 2022 at 05:55:36PM +0300, Sergey Matyukevich wrote: > From: Sergey Matyukevich > > Use BUILD_BUG for compile-time check of invalid sizes passed > to get_user/put_user functions. Looks good: Reviewed-by: Christoph Hellwig ___

Re: [RFC PATCH 3/3] arc: remove set_fs()

2022-02-01 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Re: [RFC PATCH 2/3] arc: provide __{get,put}_kernel_nofault

2022-02-01 Thread Christoph Hellwig
On Tue, Feb 01, 2022 at 05:55:37PM +0300, Sergey Matyukevich wrote: > From: Sergey Matyukevich > > Implement the non-faulting kernel access helpers directly > instead of using uaccess routines under set_fs(KERNEL_DS). > > Signed-off-by: Sergey Matyukevich > --- >

[RFC PATCH 0/3] arc: remove CONFIG_SET_FS

2022-02-01 Thread Sergey Matyukevich
Hi all, This patch series removes SET_FS support for arc. Sergey Matyukevich (3): arc: use BUILD_BUG for invalid sizes in get_user/put_user arc: provide __{get,put}_kernel_nofault arc: remove set_fs() arch/arc/Kconfig | 1 - arch/arc/include/asm/segment.h | 20

[RFC PATCH 1/3] arc: use BUILD_BUG for invalid sizes in get_user/put_user

2022-02-01 Thread Sergey Matyukevich
From: Sergey Matyukevich Use BUILD_BUG for compile-time check of invalid sizes passed to get_user/put_user functions. Signed-off-by: Sergey Matyukevich --- arch/arc/include/asm/uaccess.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/include/asm/uaccess.h

[RFC PATCH 2/3] arc: provide __{get,put}_kernel_nofault

2022-02-01 Thread Sergey Matyukevich
From: Sergey Matyukevich Implement the non-faulting kernel access helpers directly instead of using uaccess routines under set_fs(KERNEL_DS). Signed-off-by: Sergey Matyukevich --- arch/arc/include/asm/uaccess.h | 22 ++ 1 file changed, 22 insertions(+) diff --git

[RFC PATCH 3/3] arc: remove set_fs()

2022-02-01 Thread Sergey Matyukevich
From: Sergey Matyukevich Kernel __{get,put}_kernel_nofault operations are implemented for ARC. There are no other remaining arch/arc specific callers of set_fs(). So just remove it and all the supporting code. Signed-off-by: Sergey Matyukevich --- arch/arc/Kconfig | 1 -