summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2025-12-02 19:37:53 +0000
committerChristian Brauner <brauner@kernel.org>2025-12-15 14:13:04 +0100
commit268eaa8ab4ace3f3bc80fd91bb461e6b6c9da29e (patch)
tree8ce87aa5d4c2a49a6623971d47e6bef9e4b11692 /rust
parentfc73d4b4d281c24fe8ffbde2919e039cf8162bef (diff)
downloadlinux-268eaa8ab4ace3f3bc80fd91bb461e6b6c9da29e.tar.gz
linux-268eaa8ab4ace3f3bc80fd91bb461e6b6c9da29e.zip
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>
Diffstat (limited to 'rust')
-rw-r--r--rust/helpers/poll.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rust/helpers/poll.c b/rust/helpers/poll.c
index 7e5b1751c2d5..78b3839b50f0 100644
--- a/rust/helpers/poll.c
+++ b/rust/helpers/poll.c
@@ -3,8 +3,9 @@
#include <linux/export.h>
#include <linux/poll.h>
-void rust_helper_poll_wait(struct file *filp, wait_queue_head_t *wait_address,
- poll_table *p)
+__rust_helper void rust_helper_poll_wait(struct file *filp,
+ wait_queue_head_t *wait_address,
+ poll_table *p)
{
poll_wait(filp, wait_address, p);
}