From: Alice Ryhl Date: Mon, 5 Jan 2026 12:42:19 +0000 (+0000) Subject: rust: cpu: Add __rust_helper to helpers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f658bd5378d5c357d5eeb1e699f1504a7498dbf;p=thirdparty%2Fkernel%2Flinux.git rust: cpu: Add __rust_helper to helpers This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng Reviewed-by: Gary Guo Signed-off-by: Alice Ryhl Signed-off-by: Boqun Feng Link: https://patch.msgid.link/20260105-define-rust-helper-v2-6-51da5f454a67@google.com --- diff --git a/rust/helpers/cpu.c b/rust/helpers/cpu.c index 824e0adb19d4c..5759349b2c88b 100644 --- a/rust/helpers/cpu.c +++ b/rust/helpers/cpu.c @@ -2,7 +2,7 @@ #include -unsigned int rust_helper_raw_smp_processor_id(void) +__rust_helper unsigned int rust_helper_raw_smp_processor_id(void) { return raw_smp_processor_id(); }