* [PATCH] libf2fs: add BLKFINISHZONE define if not defined
@ 2024-07-24 10:28 Wu Bo
2024-07-25 2:27 ` Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: Wu Bo @ 2024-07-24 10:28 UTC (permalink / raw)
To: Jaegeuk Kim, Chao Yu; +Cc: linux-f2fs-devel, linux-kernel, Wu Bo, Wu Bo
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(+)
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)
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-25 2:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-24 10:28 [PATCH] libf2fs: add BLKFINISHZONE define if not defined Wu Bo
2024-07-25 2:27 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®