Skip to content

Commit fffdb58

Browse files
Darksonnojeda
authored andcommitted
rust: of: add __rust_helper to helpers
This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Reviewed-by: Gary Guo <gary@garyguo.net> Signed-off-by: Alice Ryhl <aliceryhl@google.com> Acked-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260105-define-rust-helper-v2-12-51da5f454a67@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 5092aea commit fffdb58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/helpers/of.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <linux/of.h>
44

5-
bool rust_helper_is_of_node(const struct fwnode_handle *fwnode)
5+
__rust_helper bool rust_helper_is_of_node(const struct fwnode_handle *fwnode)
66
{
77
return is_of_node(fwnode);
88
}

0 commit comments

Comments
 (0)