Skip to content

Commit f4040a7

Browse files
Darksonnojeda
authored andcommitted
rust: jump_label: add __rust_helper to helpers
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>
1 parent 15536a3 commit f4040a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/helpers/jump_label.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <linux/jump_label.h>
88

99
#ifndef CONFIG_JUMP_LABEL
10-
int rust_helper_static_key_count(struct static_key *key)
10+
__rust_helper int rust_helper_static_key_count(struct static_key *key)
1111
{
1212
return static_key_count(key);
1313
}

0 commit comments

Comments
 (0)