Re: [PATCH v7 3/4] rust: sync: add SRCU abstraction

From: Onur Özkan

Date: Sun May 31 2026 - 15:12:23 EST


On Sun, 31 May 2026 20:53:07 +0200
Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> wrote:

> On Sun, May 31, 2026 at 8:06 PM Paul E. McKenney <paulmck@xxxxxxxxxx> wrote:
> >
> > Is there a Rust-language counterpart to checkpatch.pl that could warn
> > when it sees patches adding calls to this function?
>
> We had some patches for proposed Rust checks for `checkpatch.pl`, so
> it could be there (there was also a proposed `rust_checkpatch.pl`).
>
> Having said that, Clippy's `disallowed_methods` is likely better
> (modulo bugs), and we already have a couple entries on it (please see
> `.clippy.toml` in the root). So I would suggest that first.
>
> There is also Klint if something more custom/complex is needed.
>

I am waiting for the v9 [1] reviews. If we get a complain on the current
approach we can consider the Rust-specific clean-up C function +
disallowed_methods from Clippy.

Thanks,
Onur

[1]: https://lore.kernel.org/all/20260529134004.396743-1-work@xxxxxxxxxxxxx

> Cheers,
> Miguel