]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: fs: add __rust_helper to helpers
authorAlice Ryhl <aliceryhl@google.com>
Tue, 2 Dec 2025 19:37:42 +0000 (19:37 +0000)
committerChristian Brauner <brauner@kernel.org>
Mon, 15 Dec 2025 13:13:03 +0000 (14:13 +0100)
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-18-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>
rust/helpers/fs.c

index a75c9676337246ce532ef694e64ba9a7d7ad5842..789d60fb8908b99d5c50293cb7a3ec6c61e768f1 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <linux/fs.h>
 
-struct file *rust_helper_get_file(struct file *f)
+__rust_helper struct file *rust_helper_get_file(struct file *f)
 {
        return get_file(f);
 }