mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Since r357940 it is no longer possible to use a single type cast for all
atomic_*_ptr functions.
This commit is contained in:
parent
c6fd3e23f7
commit
83bf6ee49b
1 changed files with 2 additions and 2 deletions
|
|
@ -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); \
|
||||
})
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue