Re: [RFC PATCH] rust: kbuild: support global per-version flags

From: Danilo Krummrich

Date: Mon Mar 16 2026 - 09:34:46 EST


On Mon Mar 16, 2026 at 1:50 PM CET, Mark Brown wrote:
> On Mon, Mar 16, 2026 at 05:49:02AM +0100, Miguel Ojeda wrote:
>> On Mon, Mar 16, 2026 at 1:04 AM Mark Brown <broonie@xxxxxxxxxx> wrote:
>
>> > At the minute whatever linux-next runs is whatever Debian stable has!
>
>> Great, that would mean we are effectively keeping the minimum one
>> clean, which is in a way the best we can do (apart from the maximum)
>> if we don't try to keep every single version clean between them.
>
> Note that I've not started running with clippy yet, currently due to
> Linus' tree having:
>
> error: current MSRV (Minimum Supported Rust Version) is `1.78.0` but this item is stable since `1.79.0`
> --> /tmp/next/build/rust/kernel/ptr/projection.rs:79:26
> |
> 79 | if self >= slice.len() {
> | ^^^^^
> |
> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
> = note: `-D clippy::incompatible-msrv` implied by `-D warnings`
> = help: to override `-D warnings` add `#[allow(clippy::incompatible_msrv)]`

Interesting, I neither see this with 1.78.0 nor 1.94.0, but I can indeed
reproduce this with 1.85.1.