Re: [PATCH v5 2/5] rust: sync: add const constructor for raw_spinlock_t

From: Miguel Ojeda

Date: Fri Oct 02 2026 - 16:55:00 EST


On Mon, Aug 3, 2026 at 9:30 AM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> +// Explicitly list architectures where this logic is checked correct.
> +#[cfg(any(
> + CONFIG_ARM,
> + CONFIG_ARM64,
> + CONFIG_LOONGARCH,
> + CONFIG_PPC,
> + CONFIG_RISCV,
> + CONFIG_S390,
> + CONFIG_X86,
> +))]

Sashiko is right, we need UML here to avoid a build error.

However, I think we should be specific, just in case, and thus use
`CONFIG_UML_X86` instead of `CONFIG_UML`, since this list is about
having checked that the logic is correct manually.

Cheers,
Miguel