diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2020-02-19 19:51:09 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2020-02-19 19:51:09 +0000 |
commit | 83bf6ee49b1930df3fe6a7a8d8fdaae33d22f8dc (patch) | |
tree | fb7159e704e7c44ac0ba7a2b2522b82bc73d8d0d /sys/sys/smr.h | |
parent | c6fd3e23f753ef90d75fd706a2a39dfc1d5425c2 (diff) | |
download | src-83bf6ee49b1930df3fe6a7a8d8fdaae33d22f8dc.tar.gz src-83bf6ee49b1930df3fe6a7a8d8fdaae33d22f8dc.zip |
Since r357940 it is no longer possible to use a single type cast for all
atomic_*_ptr functions.
Notes
Notes:
svn path=/head/; revision=358129
Diffstat (limited to 'sys/sys/smr.h')
-rw-r--r-- | sys/sys/smr.h | 4 |
1 files 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); \ }) /* |