summaryrefslogtreecommitdiff
path: root/rust/helpers/processor.c
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-01-05 12:42:26 +0000
committerBoqun Feng <boqun.feng@gmail.com>2026-01-09 19:01:41 +0800
commita87e6fe8738fabf9881758b79b0db592c057acbd (patch)
treeac3ace3ab3d74c6977e2a9cc59b69c7283309d4e /rust/helpers/processor.c
parent9f658bd5378d5c357d5eeb1e699f1504a7498dbf (diff)
rust: processor: 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-13-51da5f454a67@google.com
Diffstat (limited to 'rust/helpers/processor.c')
-rw-r--r--rust/helpers/processor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/helpers/processor.c b/rust/helpers/processor.c
index d41355e14d6e..76fadbb647c5 100644
--- a/rust/helpers/processor.c
+++ b/rust/helpers/processor.c
@@ -2,7 +2,7 @@
#include <linux/processor.h>
-void rust_helper_cpu_relax(void)
+__rust_helper void rust_helper_cpu_relax(void)
{
cpu_relax();
}