summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/pmdk/pmdk/0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch43
-rw-r--r--meta-oe/recipes-extended/pmdk/pmdk/0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch69
-rw-r--r--meta-oe/recipes-extended/pmdk/pmdk_1.12.1.bb (renamed from meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb)6
3 files changed, 46 insertions, 72 deletions
diff --git a/meta-oe/recipes-extended/pmdk/pmdk/0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch b/meta-oe/recipes-extended/pmdk/pmdk/0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch
new file mode 100644
index 0000000000..b16b633a3b
--- /dev/null
+++ b/meta-oe/recipes-extended/pmdk/pmdk/0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch
@@ -0,0 +1,43 @@
1From de6425acaa50426883e85a599001ae5e927aec5b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 2 Mar 2023 16:23:56 -0800
4Subject: [PATCH] pmempool: Match function prototypes of enum_to_str_fn
5 function pointer
6
7This is flagged by clang 16+
8common.c:844:4: error: cast from 'const char *(*)(enum chunk_type)' to 'enum_to_str_fn' (aka 'const char *(*)(int)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
9 (enum_to_str_fn)out_get_chunk_type_str);
10 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
111 error generated.
12
13Upstream-Status: Submitted [https://github.com/pmem/pmdk/pull/5543]
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 src/tools/pmempool/common.c | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/src/tools/pmempool/common.c b/src/tools/pmempool/common.c
20index 5e7e472cc..4b7e9b95f 100644
21--- a/src/tools/pmempool/common.c
22+++ b/src/tools/pmempool/common.c
23@@ -41,7 +41,7 @@
24
25 #define REQ_BUFF_SIZE 2048U
26 #define Q_BUFF_SIZE 8192
27-typedef const char *(*enum_to_str_fn)(int);
28+typedef const char *(*enum_to_str_fn)(enum chunk_type);
29
30 /*
31 * pmem_pool_type -- return pool type based on first two pages.
32@@ -790,7 +790,7 @@ util_parse_enum(const char *str, int first, int max, uint64_t *bitmap,
33 enum_to_str_fn enum_to_str)
34 {
35 for (int i = first; i < max; i++) {
36- if (strcmp(str, enum_to_str(i)) == 0) {
37+ if (strcmp(str, enum_to_str((enum chunk_type)i)) == 0) {
38 *bitmap |= (uint64_t)1<<i;
39 return 0;
40 }
41--
422.39.2
43
diff --git a/meta-oe/recipes-extended/pmdk/pmdk/0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch b/meta-oe/recipes-extended/pmdk/pmdk/0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch
deleted file mode 100644
index 0b03ffdea5..0000000000
--- a/meta-oe/recipes-extended/pmdk/pmdk/0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch
+++ /dev/null
@@ -1,69 +0,0 @@
1From 932252c0ba54a51c8bcf58b747656e29cdebfa6a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 26 Mar 2022 13:06:50 -0700
4Subject: [PATCH] use daxctl/libdaxctl.h instead of ndctl/libdaxctl.h
5
6Upstream-Status: Submitted [https://github.com/pmem/pmdk/pull/5413]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 src/libpmem2/badblocks_ndctl.c | 2 +-
10 src/libpmem2/region_namespace_ndctl.c | 2 +-
11 src/libpmem2/usc_ndctl.c | 2 +-
12 src/tools/daxio/daxio.c | 2 +-
13 4 files changed, 4 insertions(+), 4 deletions(-)
14
15diff --git a/src/libpmem2/badblocks_ndctl.c b/src/libpmem2/badblocks_ndctl.c
16index 9a5910bba..cc637f7f4 100644
17--- a/src/libpmem2/badblocks_ndctl.c
18+++ b/src/libpmem2/badblocks_ndctl.c
19@@ -16,7 +16,7 @@
20 #include <sys/sysmacros.h>
21 #include <fcntl.h>
22 #include <ndctl/libndctl.h>
23-#include <ndctl/libdaxctl.h>
24+#include <daxctl/libdaxctl.h>
25
26 #include "libpmem2.h"
27 #include "pmem2_utils.h"
28diff --git a/src/libpmem2/region_namespace_ndctl.c b/src/libpmem2/region_namespace_ndctl.c
29index 1383796a9..e31185984 100644
30--- a/src/libpmem2/region_namespace_ndctl.c
31+++ b/src/libpmem2/region_namespace_ndctl.c
32@@ -6,7 +6,7 @@
33 */
34
35 #include <ndctl/libndctl.h>
36-#include <ndctl/libdaxctl.h>
37+#include <daxctl/libdaxctl.h>
38 #include <sys/sysmacros.h>
39 #include <fcntl.h>
40
41diff --git a/src/libpmem2/usc_ndctl.c b/src/libpmem2/usc_ndctl.c
42index be63e879b..c58032a83 100644
43--- a/src/libpmem2/usc_ndctl.c
44+++ b/src/libpmem2/usc_ndctl.c
45@@ -5,7 +5,7 @@
46 * usc_ndctl.c -- pmem2 usc function for platforms using ndctl
47 */
48 #include <ndctl/libndctl.h>
49-#include <ndctl/libdaxctl.h>
50+#include <daxctl/libdaxctl.h>
51 #include <sys/types.h>
52 #include <sys/sysmacros.h>
53 #include <fcntl.h>
54diff --git a/src/tools/daxio/daxio.c b/src/tools/daxio/daxio.c
55index 66cd0b7ae..7f2c89d48 100644
56--- a/src/tools/daxio/daxio.c
57+++ b/src/tools/daxio/daxio.c
58@@ -21,7 +21,7 @@
59 #include <string.h>
60
61 #include <ndctl/libndctl.h>
62-#include <ndctl/libdaxctl.h>
63+#include <daxctl/libdaxctl.h>
64 #include <libpmem.h>
65
66 #include "util.h"
67--
682.35.1
69
diff --git a/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb b/meta-oe/recipes-extended/pmdk/pmdk_1.12.1.bb
index 33d04099c9..ccbb88ff67 100644
--- a/meta-oe/recipes-extended/pmdk/pmdk_1.11.1.bb
+++ b/meta-oe/recipes-extended/pmdk/pmdk_1.12.1.bb
@@ -11,9 +11,9 @@ DEPENDS:append:libc-musl = " fts"
11 11
12S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
13 13
14SRC_URI = "git://github.com/pmem/pmdk.git;branch=stable-1.11;protocol=https \ 14SRC_URI = "git://github.com/pmem/pmdk.git;branch=stable-1.12;protocol=https \
15 file://0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch" 15 file://0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch"
16SRCREV = "5b21904a257eff47f2e87fcbf2de46111f03ddd8" 16SRCREV = "786098a024c6fe60e746f2cb1041bcfcd21386c9"
17 17
18inherit autotools-brokensep pkgconfig 18inherit autotools-brokensep pkgconfig
19 19