Re: [PATCH V3 06/17] riscv: compat: Add basic compat date type implementation

2022-01-20 Thread Guo Ren
On Thu, Jan 20, 2022 at 5:35 PM Arnd Bergmann wrote: > > On Thu, Jan 20, 2022 at 8:38 AM wrote: > > > @@ -0,0 +1,136 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > +#ifndef __ASM_COMPAT_H > > +#define __ASM_COMPAT_H > > + > > +#define compat_mode_t compat_mode_t > > +typedef u16

Re: [PATCH V3 06/17] riscv: compat: Add basic compat date type implementation

2022-01-20 Thread Arnd Bergmann
On Thu, Jan 20, 2022 at 8:38 AM wrote: > @@ -0,0 +1,136 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +#ifndef __ASM_COMPAT_H > +#define __ASM_COMPAT_H > + > +#define compat_mode_t compat_mode_t > +typedef u16compat_mode_t; I think this one is wrong, as rv32 should get the

[PATCH V3 06/17] riscv: compat: Add basic compat date type implementation

2022-01-19 Thread guoren
From: Guo Ren Implement asm/compat.h for struct compat_xxx, RLIM_INFINITY, OFF_T_MAX, is_compat_task, compat_user_regset, regset convert. Signed-off-by: Guo Ren Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/riscv/include/asm/compat.h | 136 +++