]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: jump_label: add __rust_helper to helpers
authorAlice Ryhl <aliceryhl@google.com>
Mon, 5 Jan 2026 12:42:22 +0000 (12:42 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 10 Mar 2026 10:29:16 +0000 (11:29 +0100)
This is needed to inline these helpers into Rust code.

Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260105-define-rust-helper-v2-9-51da5f454a67@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/helpers/jump_label.c

index fc1f1e0df08e79c0f06ac46cb6729a08deb7bd41..7ca384e73121820d882fde645a80cf718e6d9fbd 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/jump_label.h>
 
 #ifndef CONFIG_JUMP_LABEL
-int rust_helper_static_key_count(struct static_key *key)
+__rust_helper int rust_helper_static_key_count(struct static_key *key)
 {
        return static_key_count(key);
 }