All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: Include clone3() on rv32
@ 2021-10-03  0:21 ` Palmer Dabbelt
  0 siblings, 0 replies; 12+ messages in thread
From: Palmer Dabbelt @ 2021-10-03  0:21 UTC (permalink / raw)
  To: linux-riscv, Arnd Bergmann
  Cc: Paul Walmsley, Palmer Dabbelt, aou, christian, linux-riscv,
	linux-kernel, kernel-team, Palmer Dabbelt

From: Palmer Dabbelt <palmerdabbelt@google.com>

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>
---
 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 4b989ae15d59..8062996c2dfd 100644
--- a/arch/riscv/include/uapi/asm/unistd.h
+++ b/arch/riscv/include/uapi/asm/unistd.h
@@ -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>
 
 /*
-- 
2.33.0.800.g4c38ced690-goog


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-10-05  9:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-03  0:21 [PATCH] RISC-V: Include clone3() on rv32 Palmer Dabbelt
2021-10-03  0:21 ` Palmer Dabbelt
2021-10-03 15:30 ` Arnd Bergmann
2021-10-03 15:30   ` Arnd Bergmann
2021-10-04 11:17   ` Christian Brauner
2021-10-04 11:17     ` Christian Brauner
2021-10-05  0:35     ` Palmer Dabbelt
2021-10-05  0:35       ` Palmer Dabbelt
2021-10-05  9:14       ` Christian Brauner
2021-10-05  9:14         ` Christian Brauner
2021-10-04  7:15 ` Christian Brauner
2021-10-04  7:15   ` Christian Brauner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.