Re: [PATCH] RISC-V: Include clone3() on rv32

From: Arnd Bergmann
Date: Sun Oct 03 2021 - 11:30:46 EST


On Sun, Oct 3, 2021 at 2:58 AM Palmer Dabbelt <palmer@xxxxxxxxxxx> wrote:
>
> From: Palmer Dabbelt <palmerdabbelt@xxxxxxxxxx>
>
> As far as I can tell this should be enabled on rv32 as well, I'm not
> sure why it's rv64-only. checksyscalls is complaining about our lack of
> clone3() on rv32.
>
> Fixes: 56ac5e213933 ("riscv: enable sys_clone3 syscall for rv64")
> Signed-off-by: Palmer Dabbelt <palmerdabbelt@xxxxxxxxxx>

We should probably reverse the polarity of this symbol and force
architectures that don't implement it properly to say they don't
have it, but for now, it definitely makes sense to treat this the same
way on 32-bit and 64-bit risc-v.

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>