[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251202-define-rust-helper-v1-32-a2e13cbc17a6@google.com>
Date: Tue, 02 Dec 2025 19:37:56 +0000
From: Alice Ryhl <aliceryhl@...gle.com>
To: rust-for-linux@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Alice Ryhl <aliceryhl@...gle.com>
Subject: [PATCH 32/46] rust: rbtree: add __rust_helper to helpers
This is needed to inline these helpers into Rust code.
Signed-off-by: Alice Ryhl <aliceryhl@...gle.com>
---
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
Powered by blists - more mailing lists