Skip to content

Commit aa574e0

Browse files
Darksonnfbq
authored andcommitted
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
1 parent 7f4c8b4 commit aa574e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rust/helpers/barrier.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
#include <asm/barrier.h>
44

5-
void rust_helper_smp_mb(void)
5+
__rust_helper void rust_helper_smp_mb(void)
66
{
77
smp_mb();
88
}
99

10-
void rust_helper_smp_wmb(void)
10+
__rust_helper void rust_helper_smp_wmb(void)
1111
{
1212
smp_wmb();
1313
}
1414

15-
void rust_helper_smp_rmb(void)
15+
__rust_helper void rust_helper_smp_rmb(void)
1616
{
1717
smp_rmb();
1818
}

0 commit comments

Comments
 (0)