From 83bf6ee49b1930df3fe6a7a8d8fdaae33d22f8dc Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Wed, 19 Feb 2020 19:51:09 +0000 Subject: [PATCH] Since r357940 it is no longer possible to use a single type cast for all atomic_*_ptr functions. --- sys/sys/smr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/smr.h b/sys/sys/smr.h index 4218558c7936..378088f37cad 100644 --- a/sys/sys/smr.h +++ b/sys/sys/smr.h @@ -120,7 +120,7 @@ typedef struct { \ */ #define smr_serialized_load(p, ex) ({ \ SMR_ASSERT(ex, "smr_serialized_load"); \ - (__typeof((p)->__ptr))atomic_load_ptr((uintptr_t *)&(p)->__ptr);\ + (__typeof((p)->__ptr))atomic_load_ptr(&(p)->__ptr); \ }) /* @@ -155,7 +155,7 @@ typedef struct { \ */ #define smr_unserialized_load(p, ex) ({ \ SMR_ASSERT(ex, "smr_unserialized_load"); \ - (__typeof((p)->__ptr))atomic_load_ptr((uintptr_t *)&(p)->__ptr);\ + (__typeof((p)->__ptr))atomic_load_ptr(&(p)->__ptr); \ }) /*