diff mbox series

[f2fs-dev] libf2fs: add BLKFINISHZONE define if not defined

Message ID 20240724102818.2665047-1-bo.wu@vivo.com (mailing list archive)
State New
Headers show
Series [f2fs-dev] libf2fs: add BLKFINISHZONE define if not defined | expand

Commit Message

Wu Bo July 24, 2024, 10:28 a.m. UTC
BLKFINISHZONE may not defined in old blkzoned.h, and cause build error.

Signed-off-by: Wu Bo <bo.wu@vivo.com>
---
 lib/libf2fs_zoned.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Chao Yu July 25, 2024, 2:27 a.m. UTC | #1
On 2024/7/24 18:28, Wu Bo wrote:
> BLKFINISHZONE may not defined in old blkzoned.h, and cause build error.
> 
> Signed-off-by: Wu Bo <bo.wu@vivo.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,
diff mbox series

Patch

diff --git a/lib/libf2fs_zoned.c b/lib/libf2fs_zoned.c
index e55d098..221d7d1 100644
--- a/lib/libf2fs_zoned.c
+++ b/lib/libf2fs_zoned.c
@@ -27,6 +27,9 @@ 
 #include <libgen.h>
 
 #ifdef HAVE_LINUX_BLKZONED_H
+#ifndef BLKFINISHZONE
+#define BLKFINISHZONE   _IOW(0x12, 136, struct blk_zone_range)
+#endif
 
 int get_sysfs_path(struct device_info *dev, const char *attr,
 		   char *buf, size_t buflen)