Skip to content

Commit e741e19

Browse files
Darksonnojeda
authored andcommitted
rust: workqueue: 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> Acked-by: Tejun Heo <tj@kernel.org> Link: https://patch.msgid.link/20260105-define-rust-helper-v2-26-51da5f454a67@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 93ad1d7 commit e741e19

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

rust/helpers/workqueue.c

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

33
#include <linux/workqueue.h>
44

5-
void rust_helper_init_work_with_key(struct work_struct *work, work_func_t func,
6-
bool onstack, const char *name,
7-
struct lock_class_key *key)
5+
__rust_helper void rust_helper_init_work_with_key(struct work_struct *work,
6+
work_func_t func,
7+
bool onstack,
8+
const char *name,
9+
struct lock_class_key *key)
810
{
911
__init_work(work, onstack);
1012
work->data = (atomic_long_t)WORK_DATA_INIT();

0 commit comments

Comments
 (0)