aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2025-03-03 20:43:12 +0800
committerJens Axboe <axboe@kernel.dk>2025-03-10 09:17:13 -0600
commit9d80f48c5e08b2e003e506c6e5326a35a652ea2f (patch)
treec1ec87d4cc30704ed226b5d86699c8246105d0ad
parentselftests: ublk: make ublk_stop_io_daemon() more reliable (diff)
downloadwireguard-linux-9d80f48c5e08b2e003e506c6e5326a35a652ea2f.tar.xz
wireguard-linux-9d80f48c5e08b2e003e506c6e5326a35a652ea2f.zip
selftests: ublk: fix build failure
Fixes the following build failure: ublk//file_backed.c: In function ‘backing_file_tgt_init’: ublk//file_backed.c:28:42: error: ‘O_DIRECT’ undeclared (first use in this function); did you mean ‘O_DIRECTORY’? 28 | fd = open(file, O_RDWR | O_DIRECT); | ^~~~~~~~ | O_DIRECTORY when trying to reuse this same utility for liburing test. Signed-off-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Keith Busch <kbusch@kernel.org> Link: https://lore.kernel.org/r/20250303124324.3563605-3-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--tools/testing/selftests/ublk/kublk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/ublk/kublk.h b/tools/testing/selftests/ublk/kublk.h
index 8e43aebf7dfc..8f48eb8568ab 100644
--- a/tools/testing/selftests/ublk/kublk.h
+++ b/tools/testing/selftests/ublk/kublk.h
@@ -12,6 +12,7 @@
#include <getopt.h>
#include <limits.h>
#include <poll.h>
+#include <fcntl.h>
#include <sys/syscall.h>
#include <sys/mman.h>
#include <sys/ioctl.h>