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

authored by

Alice Ryhl and committed by
Christian Brauner
b266a39e 8f0b4cce

+1 -1
+1 -1
rust/helpers/fs.c
··· 6 6 7 7 #include <linux/fs.h> 8 8 9 - struct file *rust_helper_get_file(struct file *f) 9 + __rust_helper struct file *rust_helper_get_file(struct file *f) 10 10 { 11 11 return get_file(f); 12 12 }