[PATCH] arch: um/x86: Select ARCH_SUPPORTS_ATOMIC_RMW for UML_X86

Richard Weinberger richard at nod.at
Tue Jan 6 06:20:43 PST 2026


----- Ursprüngliche Mail -----
> Von: "Boqun Feng" <boqun.feng at gmail.com>
> An: "linux-um" <linux-um at lists.infradead.org>, "x86" <x86 at kernel.org>
> CC: "richard" <richard at nod.at>, "anton ivanov" <anton.ivanov at cambridgegreys.com>, "Johannes Berg"
> <johannes at sipsolutions.net>, "tglx" <tglx at linutronix.de>, "mingo" <mingo at redhat.com>, "bp" <bp at alien8.de>, "dave
> hansen" <dave.hansen at linux.intel.com>, "hpa" <hpa at zytor.com>, "Miguel Ojeda" <ojeda at kernel.org>, "Boqun Feng"
> <boqun.feng at gmail.com>, "Gary Guo" <gary at garyguo.net>, "Björn Roy Baron" <bjorn3_gh at protonmail.com>, "Benno Lossin"
> <lossin at kernel.org>, "Andreas Hindborg" <a.hindborg at kernel.org>, "Alice Ryhl" <aliceryhl at google.com>, "Trevor Gross"
> <tmgross at umich.edu>, "dakr" <dakr at kernel.org>, "linux-kernel" <linux-kernel at vger.kernel.org>, "Rust for Linux Kernel"
> <rust-for-linux at vger.kernel.org>, "FUJITA Tomonori" <fujita.tomonori at gmail.com>
> Gesendet: Dienstag, 6. Januar 2026 04:40:34
> Betreff: [PATCH] arch: um/x86: Select ARCH_SUPPORTS_ATOMIC_RMW for UML_X86

> x86 atomic instructions are used for um on UML_X86, therefore atomics
> on UML_X86 support native atomic RmW as x86 does, hence select
> ARCH_SUPPORTS_ATOMIC_RMW.
> 
> Signed-off-by: Boqun Feng <boqun.feng at gmail.com>
> ---
> UM & x86 maintainers,
> 
> I need this to avoid a build error for Rust atomics since Rust currently
> only support Atomic<i8/i16> on ARCH_SUPPORTS_ATOMIC_RMW archs. I will
> add it to my upcoming PR if I get some Acked-by, thanks!
> 
> arch/x86/um/Kconfig | 1 +
> 1 file changed, 1 insertion(+)

Acked-by: Richard Weinberger <richard at nod.at>

Thanks,
//richard



More information about the linux-um mailing list