From: Shin'ichiro Kawasaki Date: Thu, 8 May 2025 00:26:15 +0000 (+0900) Subject: oslib: blkzoned: add missing blkzoned_move_zone_wp() stub X-Git-Tag: fio-3.40~16^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=03a11dc6b2e0c0e078cbb5e514d378331ea29fce;p=fio.git 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 --- 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) {