From bcb93cab639176078b881911b7f7686c759f6052 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 4 Aug 2020 17:22:03 -0400 Subject: [PATCH] avoid an ifdef --- h_malloc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/h_malloc.c b/h_malloc.c index 294f387..f1e283e 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -977,19 +977,17 @@ int get_metadata_key(void) { #endif } +static inline void thread_set_metadata_access(UNUSED unsigned access) { #ifdef USE_PKEY -static inline void thread_set_metadata_access(unsigned access) { if (ro.metadata_pkey == -1) { return; } pkey_set(ro.metadata_pkey, access); -} #endif +} static inline void thread_unseal_metadata(void) { -#ifdef USE_PKEY thread_set_metadata_access(0); -#endif } static inline void thread_seal_metadata(void) {