[PATCH liburing 2/2] tests: match kernel and pass fds in s32[]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Follow the kernel ABI and pass fds in an array of s32 but not just ints.

Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx>
---
 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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux