On Tue, 7 Jul 2020 18:10:33 +0800 Phil Yang <phil.yang at arm.com> wrote: > + return (uint16_t)(__atomic_add_fetch((int16_t *)&shinfo->refcnt_atomic, > + Why do you need so many casts here? The type of refcnt_atomic is now uint16 after your patch.