From: Pavel Begunkov <asml.silence@gmail.com>
To: Jens Axboe <axboe@kernel.dk>, io-uring@vger.kernel.org
Subject: [PATCH liburing 2/2] tests: match kernel and pass fds in s32[]
Date: Fri, 24 Sep 2021 20:05:17 +0100 [thread overview]
Message-ID: <260526556a2a44c833e2265ba59e5d2705ce8870.1632507515.git.asml.silence@gmail.com> (raw)
In-Reply-To: <cover.1632507515.git.asml.silence@gmail.com>
Follow the kernel ABI and pass fds in an array of s32 but not just ints.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
test/rsrc_tags.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/rsrc_tags.c b/test/rsrc_tags.c
index a3fec0c..f441b5c 100644
--- a/test/rsrc_tags.c
+++ b/test/rsrc_tags.c
@@ -322,7 +322,7 @@ static int test_files(int ring_flags)
struct io_uring ring;
const int nr = 50;
int off = 5, i, ret, fd;
- int files[nr];
+ __s32 files[nr];
__u64 tags[nr], tag;
for (i = 0; i < nr; ++i) {
--
2.33.0
next prev parent reply other threads:[~2021-09-24 19:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-24 19:05 [PATCH liburing 0/2] small test improvements Pavel Begunkov
2021-09-24 19:05 ` [PATCH liburing 1/2] tests: improve multicqe_drain Pavel Begunkov
2021-09-24 19:05 ` Pavel Begunkov [this message]
2021-09-24 19:59 ` [PATCH liburing 0/2] small test improvements Jens Axboe
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=260526556a2a44c833e2265ba59e5d2705ce8870.1632507515.git.asml.silence@gmail.com \
--to=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
/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.