summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-11-03 17:19:21 -0700
committerKhem Raj <raj.khem@gmail.com>2023-11-06 08:47:16 -0800
commitaffd76bde2e2756147abd25ff2e6d40def761ce6 (patch)
tree2d37d15d99b8c61a585ae1ebadcff11fac900a83
parent107b6767336ec55650db8bb043b8b196c81b84ec (diff)
downloadmeta-openembedded-affd76bde2e2756147abd25ff2e6d40def761ce6.tar.gz
pmdk: upgrade 1.12.1 -> 2.0.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-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_2.0.0.bb (renamed from meta-oe/recipes-extended/pmdk/pmdk_1.12.1.bb)5
2 files changed, 2 insertions, 46 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
deleted file mode 100644
index b16b633a3..000000000
--- a/meta-oe/recipes-extended/pmdk/pmdk/0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch
+++ /dev/null
@@ -1,43 +0,0 @@
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_1.12.1.bb b/meta-oe/recipes-extended/pmdk/pmdk_2.0.0.bb
index 5261922cd..aeda23690 100644
--- a/meta-oe/recipes-extended/pmdk/pmdk_1.12.1.bb
+++ b/meta-oe/recipes-extended/pmdk/pmdk_2.0.0.bb
@@ -11,9 +11,8 @@ 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.12;protocol=https \ 14SRC_URI = "git://github.com/pmem/pmdk.git;branch=master;protocol=https"
15 file://0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch" 15SRCREV = "ba92d6b469d52d16f26279bebaf317bbdbb3822c"
16SRCREV = "786098a024c6fe60e746f2cb1041bcfcd21386c9"
17 16
18inherit autotools-brokensep pkgconfig 17inherit autotools-brokensep pkgconfig
19 18