summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-08-29 06:38:08 -0600
committerJens Axboe <axboe@kernel.dk>2019-08-29 06:38:08 -0600
commitc012becd449b5bcb8a885a3938e7e38737d9aafe (patch)
tree0b50e54f0bf83cdac0703ac39bdb47870323b8bf
parent4d37720ae029bf66556e4f847628f8cb9f35ef47 (diff)
downloadfio-c012becd449b5bcb8a885a3938e7e38737d9aafe.tar.gz
fio-c012becd449b5bcb8a885a3938e7e38737d9aafe.tar.bz2
zbd: provide empty setup_zbd_zone_mode()
If we don't enable zbd, then provide an empty stub for the setup. This fixes a build breakage on anything but Linux. Fixes: 4d37720ae029 ("zbd: Add support for zoneskip option") Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--zbd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zbd.h b/zbd.h
index a66f40af..e0a7e447 100644
--- a/zbd.h
+++ b/zbd.h
@@ -148,6 +148,12 @@ static inline char *zbd_write_status(const struct thread_stat *ts)
static inline void zbd_queue_io_u(struct io_u *io_u,
enum fio_q_status status) {}
static inline void zbd_put_io_u(struct io_u *io_u) {}
+
+static inline void setup_zbd_zone_mode(struct thread_data *td,
+ struct io_u *io_u)
+{
+}
+
#endif
#endif /* FIO_ZBD_H */