[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251202-define-rust-helper-v1-4-a2e13cbc17a6@google.com>
Date: Tue, 02 Dec 2025 19:37:28 +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>,
Yury Norov <yury.norov@...il.com>
Subject: [PATCH 04/46] rust: bitmap: add __rust_helper to helpers
This is needed to inline these helpers into Rust code.
Signed-off-by: Alice Ryhl <aliceryhl@...gle.com>
---
Cc: Yury Norov <yury.norov@...il.com>
---
rust/helpers/bitmap.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/rust/helpers/bitmap.c b/rust/helpers/bitmap.c
index a50e2f082e47ad1bacbf453fd79d1fdfe2cc11f5..57e9e64ab0c385cbaec8ba3f169bc304e07cf419 100644
--- a/rust/helpers/bitmap.c
+++ b/rust/helpers/bitmap.c
@@ -2,8 +2,10 @@
#include <linux/bitmap.h>
-void rust_helper_bitmap_copy_and_extend(unsigned long *to, const unsigned long *from,
- unsigned int count, unsigned int size)
+__rust_helper void rust_helper_bitmap_copy_and_extend(unsigned long *to,
+ const unsigned long *from,
+ unsigned int count,
+ unsigned int size)
{
bitmap_copy_and_extend(to, from, count, size);
}
--
2.52.0.158.g65b55ccf14-goog
Powered by blists - more mailing lists