[PATCH 32/46] rust: rbtree: add __rust_helper to helpers
From: Alice Ryhl
Date: Tue Dec 02 2025 - 14:46:25 EST
This is needed to inline these helpers into Rust code.
Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
rust/helpers/rbtree.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/rust/helpers/rbtree.c b/rust/helpers/rbtree.c
index 6d404b84a9b53990cf7b301cb501f3b3332749e9..025f80a37203e3cbf05a42947047a58035018735 100644
--- a/rust/helpers/rbtree.c
+++ b/rust/helpers/rbtree.c
@@ -2,8 +2,9 @@
#include <linux/rbtree.h>
-void rust_helper_rb_link_node(struct rb_node *node, struct rb_node *parent,
- struct rb_node **rb_link)
+__rust_helper void rust_helper_rb_link_node(struct rb_node *node,
+ struct rb_node *parent,
+ struct rb_node **rb_link)
{
rb_link_node(node, parent, rb_link);
}
--
2.52.0.158.g65b55ccf14-goog