[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240724102818.2665047-1-bo.wu@vivo.com>
Date: Wed, 24 Jul 2024 04:28:18 -0600
From: Wu Bo <bo.wu@...o.com>
To: Jaegeuk Kim <jaegeuk@...nel.org>,
Chao Yu <chao@...nel.org>
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org,
Wu Bo <wubo.oduw@...il.com>,
Wu Bo <bo.wu@...o.com>
Subject: [PATCH] libf2fs: add BLKFINISHZONE define if not defined
BLKFINISHZONE may not defined in old blkzoned.h, and cause build error.
Signed-off-by: Wu Bo <bo.wu@...o.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
Powered by blists - more mailing lists