[PATCH 30/46] rust: processor: add __rust_helper to helpers

From: Alice Ryhl
Date: Tue Dec 02 2025 - 14:48:43 EST


This is needed to inline these helpers into Rust code.

Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
Cc: FUJITA Tomonori <fujita.tomonori@xxxxxxxxx>
Cc: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
Cc: Miguel Ojeda <ojeda@xxxxxxxxxx>
Cc: Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx>
---
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 d41355e14d6eb593beb018b5709118afe855c852..76fadbb647c5592db4526569fb1ed6b04ed17e87 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.52.0.158.g65b55ccf14-goog