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: 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>

authored by

Alice Ryhl and committed by
Christian Brauner
268eaa8a fc73d4b4

+3 -2
+3 -2
rust/helpers/poll.c
··· 3 3 #include <linux/export.h> 4 4 #include <linux/poll.h> 5 5 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) 8 9 { 9 10 poll_wait(filp, wait_address, p); 10 11 }