Re: [PATCH v7 1/9] rust: Introduce atomic API helpers

From: Miguel Ojeda
Date: Wed Jul 16 2025 - 08:59:25 EST


On Wed, Jul 16, 2025 at 2:47 PM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> It depends on the scripts/atomic/* bits. They hardly if ever change. We
> do it this way because:
>
> - generating these files every build is 'slow'-ish;
> - code navigation suffers;
> - Linus asked for this.
>
> Specifically, pretty much the entire atomic_*() namespace would
> disappear from ctags / code-browsing-tool-of-choice if we would not
> check in these files.

Makes sense, thanks. The Rust helpers one may not be the end of the
world in terms of code navigation (since people will use the Rust
abstractions and nobody should call the helpers from C), but since it
is just 1 more script in the list, I think it is best to keep it as it
is.

Cheers,
Miguel