Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alice Ryhl and committed by
Miguel Ojeda
f4040a7c 15536a3b

+1 -1
+1 -1
rust/helpers/jump_label.c
··· 7 7 #include <linux/jump_label.h> 8 8 9 9 #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) 11 11 { 12 12 return static_key_count(key); 13 13 }