From ac4f3c9eeac2c03b2837541249e40c634d70a424 Mon Sep 17 00:00:00 2001 From: Tomasz Gromadzki Date: Thu, 25 Jan 2024 13:41:31 +0100 Subject: [PATCH] pmem: disable flag verification until #5979 is fixed Signed-off-by: Tomasz Gromadzki --- src/libpmem/pmem.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/libpmem/pmem.c b/src/libpmem/pmem.c index 9257e9f8d7d..907fd750b6e 100644 --- a/src/libpmem/pmem.c +++ b/src/libpmem/pmem.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -/* Copyright 2014-2023, Intel Corporation */ +/* Copyright 2014-2024, Intel Corporation */ /* * pmem.c -- pmem entry points for libpmem @@ -573,10 +573,18 @@ pmem_memmove(void *pmemdest, const void *src, size_t len, unsigned flags) LOG(15, "pmemdest %p src %p len %zu flags 0x%x", pmemdest, src, len, flags); +/* + * XXX + * Disable this warning until #5979 is fixed + * https://github.com/pmem/pmdk/issues/5979 + */ +#if 0 #ifdef DEBUG if (flags & ~PMEM_F_MEM_VALID_FLAGS) ERR("invalid flags 0x%x", flags); #endif +#endif + PMEM_API_START(); Funcs.memmove_nodrain(pmemdest, src, len, flags & ~PMEM_F_MEM_NODRAIN, Funcs.flush, &Funcs.memmove_funcs); @@ -597,10 +605,17 @@ pmem_memcpy(void *pmemdest, const void *src, size_t len, unsigned flags) LOG(15, "pmemdest %p src %p len %zu flags 0x%x", pmemdest, src, len, flags); +/* + * Disable this warning until #5979 is fixed + * https://github.com/pmem/pmdk/issues/5979 + */ +#if 0 #ifdef DEBUG if (flags & ~PMEM_F_MEM_VALID_FLAGS) ERR("invalid flags 0x%x", flags); #endif +#endif + PMEM_API_START(); Funcs.memmove_nodrain(pmemdest, src, len, flags & ~PMEM_F_MEM_NODRAIN, Funcs.flush, &Funcs.memmove_funcs); @@ -621,9 +636,16 @@ pmem_memset(void *pmemdest, int c, size_t len, unsigned flags) LOG(15, "pmemdest %p c 0x%x len %zu flags 0x%x", pmemdest, c, len, flags); +/* + * XXX + * Disable this warning until #5979 is fixed + * https://github.com/pmem/pmdk/issues/5979 + */ +#if 0 #ifdef DEBUG if (flags & ~PMEM_F_MEM_VALID_FLAGS) ERR("invalid flags 0x%x", flags); +#endif #endif PMEM_API_START();