Skip to content

Commit 5e03eda

Browse files
Darksonnfbq
authored andcommitted
rust: rcu: 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> Reviewed-by: Joel Fernandes (NVIDIA) <joel@joelfernandes.org> Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Link: https://patch.msgid.link/20260105-define-rust-helper-v2-16-51da5f454a67@google.com
1 parent a87e6fe commit 5e03eda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/helpers/rcu.c

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

33
#include <linux/rcupdate.h>
44

5-
void rust_helper_rcu_read_lock(void)
5+
__rust_helper void rust_helper_rcu_read_lock(void)
66
{
77
rcu_read_lock();
88
}
99

10-
void rust_helper_rcu_read_unlock(void)
10+
__rust_helper void rust_helper_rcu_read_unlock(void)
1111
{
1212
rcu_read_unlock();
1313
}

0 commit comments

Comments
 (0)