Skip to content

Commit 9f658bd

Browse files
Darksonnfbq
authored andcommitted
rust: cpu: 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> Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Link: https://patch.msgid.link/20260105-define-rust-helper-v2-6-51da5f454a67@google.com
1 parent 1c7a6f4 commit 9f658bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/helpers/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <linux/smp.h>
44

5-
unsigned int rust_helper_raw_smp_processor_id(void)
5+
__rust_helper unsigned int rust_helper_raw_smp_processor_id(void)
66
{
77
return raw_smp_processor_id();
88
}

0 commit comments

Comments
 (0)