zbd: provide empty setup_zbd_zone_mode()
authorJens Axboe <axboe@kernel.dk>
Thu, 29 Aug 2019 12:38:08 +0000 (06:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Aug 2019 12:38:08 +0000 (06:38 -0600)
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>
zbd.h

diff --git a/zbd.h b/zbd.h
index a66f40af30f2989eeae71533353951519811b9e1..e0a7e447521d1bb3b71a9803241bca3c093871a2 100644 (file)
--- 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 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 */
 #endif
 
 #endif /* FIO_ZBD_H */