Skip to content

Commit 9cad26d

Browse files
Ming Leiaxboe
authored andcommitted
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: 57ed58c ("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>
1 parent ec12009 commit 9cad26d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • tools/testing/selftests/ublk

tools/testing/selftests/ublk/kublk.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <sys/wait.h>
2121
#include <sys/eventfd.h>
2222
#include <sys/uio.h>
23+
#include <linux/io_uring.h>
2324
#include <liburing.h>
2425
#include <linux/ublk_cmd.h>
2526
#include "ublk_dep.h"

0 commit comments

Comments
 (0)