From c012becd449b5bcb8a885a3938e7e38737d9aafe Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 29 Aug 2019 06:38:08 -0600 Subject: [PATCH] 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 --- zbd.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.25.1