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

To support atomic pointers, more cmpxchg 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-4-boqun.feng@gmail.com
Link: https://patch.msgid.link/20260303201701.12204-6-boqun@kernel.org
rust/helpers/atomic_ext.c