From 03a11dc6b2e0c0e078cbb5e514d378331ea29fce Mon Sep 17 00:00:00 2001 From: Shin'ichiro Kawasaki Date: Thu, 8 May 2025 09:26:15 +0900 Subject: [PATCH] oslib: blkzoned: add missing blkzoned_move_zone_wp() stub Commit 4175f4dbec5d ("oslib: blkzoned: add blkzoned_move_zone_wp() helper function") introduced the new function for Linux, but did not add its stub function for OSes that lack the blkzoned feature. This caused build failures on MacOS and Windows. Add the missing stub to fix it. Fixes: 4175f4dbec5d ("oslib: blkzoned: add blkzoned_move_zone_wp() helper function") Signed-off-by: Shin'ichiro Kawasaki --- oslib/blkzoned.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/oslib/blkzoned.h b/oslib/blkzoned.h index 3a4c73c2..a8e4a948 100644 --- a/oslib/blkzoned.h +++ b/oslib/blkzoned.h @@ -54,6 +54,12 @@ static inline int blkzoned_reset_wp(struct thread_data *td, struct fio_file *f, { return -EIO; } +static inline int blkzoned_move_zone_wp(struct thread_data *td, + struct fio_file *f, struct zbd_zone *z, + uint64_t length, const char *buf) +{ + return -EIO; +} static inline int blkzoned_get_max_open_zones(struct thread_data *td, struct fio_file *f, unsigned int *max_open_zones) { -- 2.25.1