Re: next-20250818: rust: `ARCH_KMALLOC_MINALIGN` is defined multiple times
From: Miguel Ojeda
Date: Tue Aug 19 2025 - 10:05:29 EST
On Tue, Aug 19, 2025 at 10:40 AM Naresh Kamboju
<naresh.kamboju@xxxxxxxxxx> wrote:
>
> Build regressions were detected on multiple architectures (arm, arm64,
> riscv) with the Linux next-20250818 tag when building with Rust-enabled
> configurations (rust-gcc and rust-clang) from selftests/rust/config.
>
> Duplicate definition of ARCH_KMALLOC_MINALIGN in Rust bindings is
> causing build failures across affected toolchains.
Thanks a lot Naresh, this was reported already by Thorsten and me yesterday:
https://lore.kernel.org/rust-for-linux/8aa05f08-ef6e-4dfe-9453-beaab7b3cb98@xxxxxxxxxxxxx/
A patch from Danilo is in flight to fix it:
https://lore.kernel.org/rust-for-linux/20250818180923.192042-1-dakr@xxxxxxxxxx/
If you could test it, that would be great. I assume Danilo will apply
the patch on top of alloc-next, since the issue is just inside that
branch that goes into linux-next.
Thanks!
Cheers,
Miguel