[PATCH 00/46] use stdatomic API

Tyler Retzlaff roretzla at linux.microsoft.com
Thu Mar 21 17:22:28 CET 2024


On Thu, Mar 21, 2024 at 08:33:23AM -0700, Stephen Hemminger wrote:
> On Wed, 20 Mar 2024 13:50:46 -0700
> Tyler Retzlaff <roretzla at linux.microsoft.com> wrote:
> 
> > This series converts all non-generic built atomics to use the rte_atomic
> > macros that allow optional enablement of standard C11 atomics.
> > 
> > Use of generic atomics for non-scalar types are not converted in this
> > change and will be evaluated as a part of a separate series.
> > 
> > Note if this series ends up requiring too much rebasing due to tree
> > churn before it is merged i will break it up into smaller series.
> 
> Maybe a coccinelle script to automate this and check/fix future usages?

it also isn't strictly a 1:1 replacement so some __atomic_ could be text
replaced sometimes you need to evaluate arguments on e.g. compare
exchange to pick the right macro, sometimes there are generic vs scalar
version to deal with.

we already have a checkpatches check but right now it is (I think) being
ignored when merging changes to drivers that have not been converted. so
if we get things converted there shouldn't be any further reason to
accept series that are being flagged by checkpatches.

> 
> Series-acked-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the dev mailing list