[PATCH] rust: bug: fix `dead_code` warning in `warn_on!`

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Sat Aug 8 12:40:49 PDT 2026


On Sat, Aug 8, 2026 at 7:30 AM FUJITA Tomonori <tomo at flapping.org> wrote:
>
> Is this the one you saw?

Yeah, exactly.

> I posted a `cfg(testlib)` split for it:
>
> https://lore.kernel.org/all/20260808022608.1125174-1-tomo@flapping.org/

Thanks! It seems good to me.

> While at it, a question: what is `rusttest` meant to cover when
> `ARCH=` is not the host's?

`rusttest` is meant to run tests on the host, regardless of the target.

There aren't many tests there nowadays, since most of them moved to
the actual kernel when we got support for that, but we can still do
there things like testing proc macros.

We could also use it for more things in the future, perhaps...

Cheers,
Miguel



More information about the linux-arm-kernel mailing list