[PATCH 04/46] rust: bitmap: add __rust_helper to helpers

From: Alice Ryhl
Date: Tue Dec 02 2025 - 14:39:29 EST


This is needed to inline these helpers into Rust code.

Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
Cc: Yury Norov <yury.norov@xxxxxxxxx>
---
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