All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Gordeev <agordeev@linux.ibm.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/2] syscalls/kcmp03.c: Extend clone_type type to unsigned long
Date: Fri,  8 May 2020 15:09:02 +0200	[thread overview]
Message-ID: <c505358f47c1cdb7cf04032f567aeb3bcec37e7c.1588942426.git.agordeev@linux.ibm.com> (raw)
In-Reply-To: <cover.1588942426.git.agordeev@linux.ibm.com>

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 --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},
-- 
1.8.3.1


  reply	other threads:[~2020-05-08 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08 13:09 [LTP] [PATCH 0/2] syscalls/kcmp03.c: Fix CLONE_IO failure on s390 Alexander Gordeev
2020-05-08 13:09 ` Alexander Gordeev [this message]
2020-05-08 13:09 ` [LTP] [PATCH 2/2] lib/cloner.c: Use __clone instead of clone for s390 Alexander Gordeev
2020-05-08 14:20   ` Jan Stancek
2020-05-11  8:33     ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c505358f47c1cdb7cf04032f567aeb3bcec37e7c.1588942426.git.agordeev@linux.ibm.com \
    --to=agordeev@linux.ibm.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.