[PATCH 23/46] rust: maple_tree: add __rust_helper to helpers

Alice Ryhl aliceryhl at google.com
Tue Dec 2 11:37:47 PST 2025


This is needed to inline these helpers into Rust code.

Signed-off-by: Alice Ryhl <aliceryhl at google.com>
---
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: "Liam R. Howlett" <Liam.Howlett at oracle.com>
Cc: Andrew Ballance <andrewjballance at gmail.com>
Cc: maple-tree at lists.infradead.org
Cc: linux-mm at kvack.org
---
 rust/helpers/maple_tree.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rust/helpers/maple_tree.c b/rust/helpers/maple_tree.c
index 1dd9ac84a13feed53c0ed5eec6805517081d0673..5586486a76e0de60969af1510b4b0428392920e6 100644
--- a/rust/helpers/maple_tree.c
+++ b/rust/helpers/maple_tree.c
@@ -2,7 +2,8 @@
 
 #include <linux/maple_tree.h>
 
-void rust_helper_mt_init_flags(struct maple_tree *mt, unsigned int flags)
+__rust_helper void rust_helper_mt_init_flags(struct maple_tree *mt,
+					     unsigned int flags)
 {
 	mt_init_flags(mt, flags);
 }

-- 
2.52.0.158.g65b55ccf14-goog




More information about the maple-tree mailing list