diff options
| -rw-r--r-- | meta-oe/recipes-extended/pmdk/pmdk/0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch | 43 | ||||
| -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 b16b633a3b..0000000000 --- a/meta-oe/recipes-extended/pmdk/pmdk/0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | From de6425acaa50426883e85a599001ae5e927aec5b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 2 Mar 2023 16:23:56 -0800 | ||
| 4 | Subject: [PATCH] pmempool: Match function prototypes of enum_to_str_fn | ||
| 5 | function pointer | ||
| 6 | |||
| 7 | This is flagged by clang 16+ | ||
| 8 | common.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 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 11 | 1 error generated. | ||
| 12 | |||
| 13 | Upstream-Status: Submitted [https://github.com/pmem/pmdk/pull/5543] | ||
| 14 | Signed-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 | |||
| 19 | diff --git a/src/tools/pmempool/common.c b/src/tools/pmempool/common.c | ||
| 20 | index 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 | -- | ||
| 42 | 2.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 5261922cdd..aeda236901 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 | ||
| 12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 13 | 13 | ||
| 14 | SRC_URI = "git://github.com/pmem/pmdk.git;branch=stable-1.12;protocol=https \ | 14 | SRC_URI = "git://github.com/pmem/pmdk.git;branch=master;protocol=https" |
| 15 | file://0001-pmempool-Match-function-prototypes-of-enum_to_str_fn.patch" | 15 | SRCREV = "ba92d6b469d52d16f26279bebaf317bbdbb3822c" |
| 16 | SRCREV = "786098a024c6fe60e746f2cb1041bcfcd21386c9" | ||
| 17 | 16 | ||
| 18 | inherit autotools-brokensep pkgconfig | 17 | inherit autotools-brokensep pkgconfig |
| 19 | 18 | ||
