[PATCH 28/36] rust: processor: Add __rust_helper to helpers
From: Boqun Feng
Date: Sun Jan 11 2026 - 07:03:28 EST
From: Alice Ryhl <aliceryhl@xxxxxxxxxx>
This is needed to inline these helpers into Rust code.
Reviewed-by: Boqun Feng <boqun.feng@xxxxxxxxx>
Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
Signed-off-by: Boqun Feng <boqun.feng@xxxxxxxxx>
Link: https://patch.msgid.link/20260105-define-rust-helper-v2-13-51da5f454a67@xxxxxxxxxx
---
rust/helpers/processor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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();
}
--
2.51.0