summaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-01-05 12:42:23 +0000
committerMiguel Ojeda <ojeda@kernel.org>2026-01-26 03:49:09 +0100
commitfa6cbf1f5acc0ae0cf9f8e5c0ce486b8e36c86cf (patch)
tree824d715c23d33871daafe33d84f643a11c7257b7 /rust/helpers
parent227d1955bfc3cade00f11580a6cf35a1ee770d8c (diff)
downloadlwn-fa6cbf1f5acc0ae0cf9f8e5c0ce486b8e36c86cf.tar.gz
lwn-fa6cbf1f5acc0ae0cf9f8e5c0ce486b8e36c86cf.zip
rust: maple_tree: add __rust_helper to helpers
This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Acked-by: Andrew Ballance <andrewjballance@gmail.com> Reviewed-by: Gary Guo <gary@garyguo.net> Signed-off-by: Alice Ryhl <aliceryhl@google.com> Acked-by: Liam R. Howlett <Liam.Howlett@oracle.com> Link: https://patch.msgid.link/20260105-define-rust-helper-v2-10-51da5f454a67@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/helpers')
-rw-r--r--rust/helpers/maple_tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/helpers/maple_tree.c b/rust/helpers/maple_tree.c
index 1dd9ac84a13f..5586486a76e0 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);
}