Skip to content

Commit

Permalink
RISC-V: Include clone3() on rv32
Browse files Browse the repository at this point in the history
[ Upstream commit 59a4e0d ]

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: 56ac5e2 ("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>
  • Loading branch information
Palmer Dabbelt authored and Greg Kroah-Hartman committed Oct 13, 2021
1 parent a326f9c commit 9e2a9da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/riscv/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
@@ -18,9 +18,10 @@
#ifdef __LP64__
#define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_SYS_CLONE3
#endif /* __LP64__ */

#define __ARCH_WANT_SYS_CLONE3

#include <asm-generic/unistd.h>

/*

0 comments on commit 9e2a9da

Please sign in to comment.