Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: barrier: 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-1-51da5f454a67@google.com

authored by

Alice Ryhl and committed by
Boqun Feng
aa574e0f 7f4c8b4d

+3 -3
+3 -3
rust/helpers/barrier.c
··· 2 2 3 3 #include <asm/barrier.h> 4 4 5 - void rust_helper_smp_mb(void) 5 + __rust_helper void rust_helper_smp_mb(void) 6 6 { 7 7 smp_mb(); 8 8 } 9 9 10 - void rust_helper_smp_wmb(void) 10 + __rust_helper void rust_helper_smp_wmb(void) 11 11 { 12 12 smp_wmb(); 13 13 } 14 14 15 - void rust_helper_smp_rmb(void) 15 + __rust_helper void rust_helper_smp_rmb(void) 16 16 { 17 17 smp_rmb(); 18 18 }