Since r357940 it is no longer possible to use a single type cast for all

atomic_*_ptr functions.
This commit is contained in:
Jeff Roberson 2020-02-19 19:51:09 +00:00
parent c6fd3e23f7
commit 83bf6ee49b

View File

@ -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); \
})
/*