mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
8f0b4cce44
commit
b266a39eb2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue