Re: [PATCH 4/6] uaccess: remove segment_eq

2020-07-14 Thread Linus Torvalds
Ack, just with a note: On Tue, Jul 14, 2020 at 4:06 AM Christoph Hellwig wrote: > > --- a/arch/x86/include/asm/uaccess.h > +++ b/arch/x86/include/asm/uaccess.h > @@ -33,7 +33,7 @@ static inline void set_fs(mm_segment_t fs) > set_thread_flag(TIF_FSCHECK); > } > > -#define segment_eq(a,

[PATCH 4/6] uaccess: remove segment_eq

2020-07-14 Thread Christoph Hellwig
segment_eq is only used to implement uaccess_kernel. Just open code uaccess_kernel in the arch uaccess headers and remove one layer of indirection. Signed-off-by: Christoph Hellwig Acked-by: Greentime Hu Acked-by: Geert Uytterhoeven --- arch/alpha/include/asm/uaccess.h | 2 +-

Re: [PATCH 4/6] uaccess: remove segment_eq

2020-07-13 Thread Greentime Hu
Christoph Hellwig 於 2020年7月10日 週五 下午9:57寫道: > > segment_eq is only used to implement uaccess_kernel. Just open code > uaccess_kernel in the arch uaccess headers and remove one layer of > indirection. > > Signed-off-by: Christoph Hellwig > --- > arch/alpha/include/asm/uaccess.h | 2 +- >

Re: [PATCH 4/6] uaccess: remove segment_eq

2020-07-13 Thread Geert Uytterhoeven
On Fri, Jul 10, 2020 at 3:58 PM Christoph Hellwig wrote: > segment_eq is only used to implement uaccess_kernel. Just open code > uaccess_kernel in the arch uaccess headers and remove one layer of > indirection. > > Signed-off-by: Christoph Hellwig > arch/m68k/include/asm/segment.h | 2

[PATCH 4/6] uaccess: remove segment_eq

2020-07-10 Thread Christoph Hellwig
segment_eq is only used to implement uaccess_kernel. Just open code uaccess_kernel in the arch uaccess headers and remove one layer of indirection. Signed-off-by: Christoph Hellwig --- arch/alpha/include/asm/uaccess.h | 2 +- arch/arc/include/asm/segment.h| 3 +--