diff options
author | 2025-04-12 10:30:18 +0800 | |
---|---|---|
committer | 2025-04-16 19:32:18 -0600 | |
commit | 9cad26d66b7a6306fa1e3cf64e30941afdadf6c8 (patch) | |
tree | 851ca4a739b954d393caffcd1322ef27c3371336 | |
parent | selftests: ublk: fix ublk_find_tgt() (diff) | |
download | wireguard-linux-9cad26d66b7a6306fa1e3cf64e30941afdadf6c8.tar.xz wireguard-linux-9cad26d66b7a6306fa1e3cf64e30941afdadf6c8.zip |
selftests: ublk: add io_uring uapi header
Add io_uring UAPI header so that ublk can work with latest uapi
definition.
Fix the following build failure:
stripe.c: In function ‘stripe_to_uring_op’:
stripe.c:120:29: error: ‘IORING_OP_READV_FIXED’ undeclared (first use in this function); did you mean ‘IORING_OP_READ_FIXED’?
120 | return zc ? IORING_OP_READV_FIXED : IORING_OP_READV;
| ^~~~~~~~~~~~~~~~~~~~~
| IORING_OP_READ_FIXED
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Fixes: 57ed58c13256 ("selftests: ublk: enable zero copy for stripe target")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250412023035.2649275-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r-- | tools/testing/selftests/ublk/kublk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/ublk/kublk.h b/tools/testing/selftests/ublk/kublk.h index 73294f6e3e49..eccf12360a14 100644 --- a/tools/testing/selftests/ublk/kublk.h +++ b/tools/testing/selftests/ublk/kublk.h @@ -20,6 +20,7 @@ #include <sys/wait.h> #include <sys/eventfd.h> #include <sys/uio.h> +#include <linux/io_uring.h> #include <liburing.h> #include <linux/ublk_cmd.h> #include "ublk_dep.h" |