mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [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

* Re: [PATCH] libf2fs: add BLKFINISHZONE define if not defined
  2024-07-24 10:28 [PATCH] libf2fs: add BLKFINISHZONE define if not defined Wu Bo
@ 2024-07-25  2:27 ` Chao Yu
  0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2024-07-25  2:27 UTC (permalink / raw)
  To: Wu Bo, Jaegeuk Kim; +Cc: linux-f2fs-devel, linux-kernel, Wu Bo

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,

^ 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®