]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: helpers: Generify the definitions of rust_helper_*_xchg*
authorBoqun Feng <boqun.feng@gmail.com>
Tue, 3 Mar 2026 20:16:52 +0000 (12:16 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Sun, 8 Mar 2026 10:06:48 +0000 (11:06 +0100)
commitf92d22b00e3f75fad2efd965b20d49b4e763b792
treee256f4092819149f445acdee0636cb15354e3f18
parentecc8e9fbaac35c8e5cced26f740f846506c4737b
rust: helpers: Generify the definitions of rust_helper_*_xchg*

To support atomic pointers, more xchg helpers will be introduced, hence
define macros to generate these helpers to ease the introduction of the
future helpers.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260117122243.24404-3-boqun.feng@gmail.com
Link: https://patch.msgid.link/20260303201701.12204-5-boqun@kernel.org
rust/helpers/atomic_ext.c