Re: [GIT PULL] Rust for 6.12

From: Linus Torvalds
Date: Wed Sep 25 2024 - 13:46:55 EST


On Tue, 24 Sept 2024 at 15:11, Miguel Ojeda <ojeda@xxxxxxxxxx> wrote:
>
> Rust changes for v6.12

So it looks like now the only thing holding Rust testing back for the
allmodconfig case is the MODVERSIONS support (assuming modern enough
tool chains etc).

I'm inclined to just do this:

config MODVERSIONS
bool "Module versioning support"
+ depends on !COMPILE_TEST
help
Usually, you have to use modules compiled with your kernel.
Saying Y here makes it sometimes possible to use modules

in order to have the basic Rust stuff be part of the usual allmodconfig build.

That gets it building for me on x86-64, at least. But at the
maintainer summit I think you said MODVERSIONS support is being worked
on too, no?

On my arm64 box, Rust support is still disabled due to
RUSTC_SUPPORTS_ARM64 not being true (which in turn seems to be due to
SHADOW_CALL_STACK support, and that needs rust 18.2 which I don't
have).

Anyway, just a heads up that I think we'll have more "unintentional"
Rust build test coverage this way.

Linus