io_uring.h: Remove io_uring_setup_supported_by_kernel()
Hi Cyril,
Quoted 27 lines
Hi!
Quoted 15 lines
include/lapi/io_uring.h index renamed from include/lapi/io_uring.h +0
-0397324511..43d28f74a 100644
include/lapi/io_uring.h +0
-0@@ -297,14 +297,22 @@ static inline int io_uring_enter(int fd,unsigned int
to_submit, static inline voidio_uring_setup_supported_by_kernel(void){ long ret;include/lapi/io_uring.h +6
-0+ + ret =syscall (__NR_io_uring_setup,NULL ,0 ); + +if (ret !=-1 ) { +SAFE_CLOSE (ret); +return ;include/lapi/io_uring.h
Quoted 10 lines
include/lapi/io_uring.h +3
-4+ } +if ((tst_kvercmp (5 ,1 ,0 )) <0 ) { - ret =syscall (__NR_io_uring_setup,NULL ,0 ); -if (ret !=-1 ) -SAFE_CLOSE (ret); -else if (errno ==ENOSYS ) +if (errno ==ENOSYS ) tst_brk(TCONF, "Test not supported on kernelversion < v5.1");
Quoted 5 lines
include/lapi/io_uring.h
Quoted 3 lines
}include/lapi/io_uring.h +2
-0+ +if (errno ==ENOSYS )Based on your latest reply this should be EOPNOTSUPP.
The errno is ENOSYS when CONFIG_IO_URING is not set. My system is different with the linux upstream.
Thanks, I have resubmit a new patch as your suggestion, please see: https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/
Quoted 15 lines
Quoted 11 lines
+
tst_brk(TCONF, "CONFIG_IO_URING not set?");
}--
Cyril Hrubis
[email protected]--
Mailing list info: https://lists.linux.it/listinfo/ltp--
Cyril Hrubis
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp