[PATCH 25/46] rust: of: add __rust_helper to helpers
From: Alice Ryhl
Date: Tue Dec 02 2025 - 14:46:50 EST
This is needed to inline these helpers into Rust code.
Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
Cc: Rob Herring <robh@xxxxxxxxxx>
Cc: Saravana Kannan <saravanak@xxxxxxxxxx>
Cc: devicetree@xxxxxxxxxxxxxxx
---
rust/helpers/of.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/helpers/of.c b/rust/helpers/of.c
index 86b51167c913f96b626e55adb51bdac2a9f04f56..8f62ca69e8ba54098343dcef77f5e82e5a3bf497 100644
--- a/rust/helpers/of.c
+++ b/rust/helpers/of.c
@@ -2,7 +2,7 @@
#include <linux/of.h>
-bool rust_helper_is_of_node(const struct fwnode_handle *fwnode)
+__rust_helper bool rust_helper_is_of_node(const struct fwnode_handle *fwnode)
{
return is_of_node(fwnode);
}
--
2.52.0.158.g65b55ccf14-goog