summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools/0001-f2fs-tools-use-stdbool.h-instead-of-bool.patch40
-rw-r--r--meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools_1.16.0.bb1
2 files changed, 41 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools/0001-f2fs-tools-use-stdbool.h-instead-of-bool.patch b/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools/0001-f2fs-tools-use-stdbool.h-instead-of-bool.patch
new file mode 100644
index 0000000000..4981c2151d
--- /dev/null
+++ b/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools/0001-f2fs-tools-use-stdbool.h-instead-of-bool.patch
@@ -0,0 +1,40 @@
1From 6617d15a660becc23825007ab3fc2d270b5b250f Mon Sep 17 00:00:00 2001
2From: Jaegeuk Kim <jaegeuk@kernel.org>
3Date: Thu, 24 Oct 2024 20:33:38 +0000
4Subject: [PATCH] f2fs-tools: use stdbool.h instead of bool
5
6The existing bool definition is broken for c23,i where bool is now a keyword.
7
8Upstream-Status: Backport [https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/?id=6617d15a660becc23825007ab3fc2d270b5b250f]
9
10Signed-off-by: Elliott Hughes <enh@google.com>
11Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
12---
13 include/f2fs_fs.h | 4 +---
14 1 file changed, 1 insertion(+), 3 deletions(-)
15
16diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
17index 9534da9..0cb9228 100644
18--- a/include/f2fs_fs.h
19+++ b/include/f2fs_fs.h
20@@ -28,6 +28,7 @@
21 #include <stddef.h>
22 #include <string.h>
23 #include <time.h>
24+#include <stdbool.h>
25
26 #ifdef HAVE_CONFIG_H
27 #include <config.h>
28@@ -119,9 +120,6 @@ typedef uint16_t u16;
29 typedef uint8_t u8;
30 typedef u32 block_t;
31 typedef u32 nid_t;
32-#ifndef bool
33-typedef u8 bool;
34-#endif
35 typedef unsigned long pgoff_t;
36 typedef unsigned short umode_t;
37
38--
392.34.1
40
diff --git a/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools_1.16.0.bb b/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools_1.16.0.bb
index 997fa1240a..a51c2ef8bd 100644
--- a/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools_1.16.0.bb
+++ b/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools_1.16.0.bb
@@ -9,6 +9,7 @@ DEPENDS = "util-linux"
9 9
10SRCREV = "06c027abc6153c4a97cba5317844e8dcaaee3cf7" 10SRCREV = "06c027abc6153c4a97cba5317844e8dcaaee3cf7"
11SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git;branch=master \ 11SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git;branch=master \
12 file://0001-f2fs-tools-use-stdbool.h-instead-of-bool.patch \
12 file://0002-f2fs_io-Define-_FILE_OFFSET_BITS-64.patch \ 13 file://0002-f2fs_io-Define-_FILE_OFFSET_BITS-64.patch \
13 " 14 "
14UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" 15UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"