summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-01-07 14:14:13 +0000
committerBoqun Feng <boqun.feng@gmail.com>2026-01-09 19:01:42 +0800
commitabf2111d8d900c834993d443f59b836291b8d0fc (patch)
tree473c9dbe77b0ebdd83245dd64198acd409a5b54a /scripts
parent5628f0510a4c64908c5d2f36a676b092e1e5d174 (diff)
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 [1] 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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/atomic/gen-rust-atomic-helpers.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/atomic/gen-rust-atomic-helpers.sh b/scripts/atomic/gen-rust-atomic-helpers.sh
index 45b1e100ed7c..a3732153af29 100755
--- a/scripts/atomic/gen-rust-atomic-helpers.sh
+++ b/scripts/atomic/gen-rust-atomic-helpers.sh
@@ -47,11 +47,6 @@ cat << EOF
#include <linux/atomic.h>
-// TODO: Remove this after INLINE_HELPERS support is added.
-#ifndef __rust_helper
-#define __rust_helper
-#endif
-
EOF
grep '^[a-z]' "$1" | while read name meta args; do