
From: Palmer Dabbelt <palmerdabbelt@google.com> stable inclusion from stable-5.10.73 commit a4037dded56bb82eb4fbb37b5bdbf18a55e2bb96 bugzilla: 182983 https://gitee.com/openeuler/kernel/issues/I4I3M0 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=... -------------------------------- [ Upstream commit 59a4e0d5511ba61353ea9a4efdb1b86c23ecf134 ] 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@google.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Chen Jun <chenjun102@huawei.com> Conflicts: arch/riscv/include/uapi/asm/unistd.h Acked-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: Chen Jun <chenjun102@huawei.com> --- arch/riscv/include/uapi/asm/unistd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/include/uapi/asm/unistd.h b/arch/riscv/include/uapi/asm/unistd.h index 4c14aa5947cc..e726324fc9ea 100644 --- a/arch/riscv/include/uapi/asm/unistd.h +++ b/arch/riscv/include/uapi/asm/unistd.h @@ -17,13 +17,14 @@ #ifdef __LP64__ #define __ARCH_WANT_NEW_STAT -#define __ARCH_WANT_SYS_CLONE3 #endif /* __LP64__ */ #define __ARCH_WANT_SET_GET_RLIMIT #ifndef __LP64__ #define __ARCH_WANT_TIME32_SYSCALLS #endif +#define __ARCH_WANT_SYS_CLONE3 + #include <asm-generic/unistd.h> /* -- 2.20.1