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

authored by

Alice Ryhl and committed by
Miguel Ojeda
fffdb587 5092aeaf

+1 -1
+1 -1
rust/helpers/of.c
··· 2 2 3 3 #include <linux/of.h> 4 4 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) 6 6 { 7 7 return is_of_node(fwnode); 8 8 }