[LTP] [PATCH v2 1/2] tst_atomic: drop legacy inline assembly and use __atomic or __sync builtins
Li Wang
liwang@redhat.com
Fri Jun 6 12:10:06 CEST 2025
Hi Cyril,
Li Wang <liwang@redhat.com> wrote:
> Also do we need to update fuzzy sync library in the second patch in
>> order not to produce warnings?
>
>
> Good point, also we probably need to check all related atomic operations to
> ensure no new warnings by the type conversion.
>
Or, do you think it's necessary to define a dedicated tst_atomic_t type,
such as:
typedef int32_t tst_atomic_t;
and use it explicitly for all variables that are subject to atomic
operations?
This way, we can clearly declare which values are intended for atomic use,
improving type safety and code clarity.
--
Regards,
Li Wang
More information about the ltp
mailing list