From: Alice Ryhl Date: Mon, 5 Jan 2026 12:42:14 +0000 (+0000) Subject: rust: barrier: Add __rust_helper to helpers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa574e0f21a6e7a28e4b8794ad4238d3bfd4f9df;p=thirdparty%2Fkernel%2Flinux.git rust: barrier: 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-1-51da5f454a67@google.com --- diff --git a/rust/helpers/barrier.c b/rust/helpers/barrier.c index cdf28ce8e5116..fed8853745c83 100644 --- a/rust/helpers/barrier.c +++ b/rust/helpers/barrier.c @@ -2,17 +2,17 @@ #include -void rust_helper_smp_mb(void) +__rust_helper void rust_helper_smp_mb(void) { smp_mb(); } -void rust_helper_smp_wmb(void) +__rust_helper void rust_helper_smp_wmb(void) { smp_wmb(); } -void rust_helper_smp_rmb(void) +__rust_helper void rust_helper_smp_rmb(void) { smp_rmb(); }