On Sun, 31 May 2026 20:53:07 +0200 Miguel Ojeda <[email protected]> wrote:
> On Sun, May 31, 2026 at 8:06 PM Paul E. McKenney <[email protected]> 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/[email protected] > Cheers, > Miguel

