]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: helpers: Move #define __rust_helper out of atomic.c
authorAlice Ryhl <aliceryhl@google.com>
Wed, 7 Jan 2026 14:14:13 +0000 (14:14 +0000)
committerBoqun Feng <boqun.feng@gmail.com>
Fri, 9 Jan 2026 11:01:42 +0000 (19:01 +0800)
commitabf2111d8d900c834993d443f59b836291b8d0fc
tree473c9dbe77b0ebdd83245dd64198acd409a5b54a
parent5628f0510a4c64908c5d2f36a676b092e1e5d174
rust: helpers: Move #define __rust_helper out of atomic.c

In order to support inline helpers [1], we need to have __rust_helper
defined for all helper files. Current we are lucky that atomic.c is the
first file in helpers.c, but this is fragile. Thus, move it to
helpers.c.

[boqun: Reword the commit message and apply file hash changes]

Link: https://lore.kernel.org/r/20260105-define-rust-helper-v2-0-51da5f454a67@google.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20260107-move-rust_helper-define-v1-1-4109d58ef275@google.com
rust/helpers/atomic.c
rust/helpers/helpers.c
scripts/atomic/gen-rust-atomic-helpers.sh