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 <[email protected]> Fixes: 57ed58c ("selftests: ublk: enable zero copy for stripe target") Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent ec12009 commit 9cad26d

File tree

1 file changed

+1
-0
lines changed
  • tools/testing/selftests/ublk

1 file changed

+1
-0
lines changed

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)