Skip to content

Commit 268eaa8

Browse files
Darksonnbrauner
authored andcommitted
rust: poll: add __rust_helper to helpers
This is needed to inline these helpers into Rust code. Signed-off-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20251202-define-rust-helper-v1-29-a2e13cbc17a6@google.com Reviewed-by: Gary Guo <gary@garyguo.net> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent fc73d4b commit 268eaa8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rust/helpers/poll.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#include <linux/export.h>
44
#include <linux/poll.h>
55

6-
void rust_helper_poll_wait(struct file *filp, wait_queue_head_t *wait_address,
7-
poll_table *p)
6+
__rust_helper void rust_helper_poll_wait(struct file *filp,
7+
wait_queue_head_t *wait_address,
8+
poll_table *p)
89
{
910
poll_wait(filp, wait_address, p);
1011
}

0 commit comments

Comments
 (0)