errno will be ENOSYS, not EOPNOTSUPP if the syscall is not there. This also matches what errno is set to in do_statx if __NR_statx is not defined. Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx> --- test/statx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/statx.c b/test/statx.c index 66f333f93cf9..c846a4ad5b9f 100644 --- a/test/statx.c +++ b/test/statx.c @@ -51,7 +51,7 @@ static int create_file(const char *file, size_t size) static int statx_syscall_supported(void) { - return errno == EOPNOTSUPP ? 0 : -1; + return errno == ENOSYS ? 0 : -1; } static int test_statx(struct io_uring *ring, const char *path) -- 2.27.0