diff mbox series

[1/2] syscalls/kcmp03.c: Extend clone_type type to unsigned long

Message ID c505358f47c1cdb7cf04032f567aeb3bcec37e7c.1588942426.git.agordeev@linux.ibm.com
State Rejected
Headers show
Series syscalls/kcmp03.c: Fix CLONE_IO failure on s390 | expand

Commit Message

Alexander Gordeev May 8, 2020, 1:09 p.m. UTC
Member clone_type is defined as signed integer type. That
is too small to accomodate CLONE_IO (which conflicts with
the sign bit) and newer clone flags (i.e CLONE_INTO_CGROUP).

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
---
 testcases/kernel/syscalls/kcmp/kcmp03.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/testcases/kernel/syscalls/kcmp/kcmp03.c b/testcases/kernel/syscalls/kcmp/kcmp03.c
index 30ac3ec..f36515f 100644
--- a/testcases/kernel/syscalls/kcmp/kcmp03.c
+++ b/testcases/kernel/syscalls/kcmp/kcmp03.c
@@ -31,7 +31,7 @@  static int pid2;
 static void *stack;
 
 static struct tcase {
-	int clone_type;
+	unsigned long clone_type;
 	int kcmp_type;
 } tcases[] = {
 	{CLONE_VM, KCMP_VM},