diff options
author | Burak Emir <bqe@google.com> | 2025-09-08 07:21:51 +0000 |
---|---|---|
committer | Yury Norov (NVIDIA) <yury.norov@gmail.com> | 2025-09-22 15:52:44 -0400 |
commit | 0452b4ab2961093f23bb289b0112351b917fb23c (patch) | |
tree | 71a48915ce94f3796e878deefe359f20ddcd4c1a /rust/helpers/bitmap.c | |
parent | 4688bb13dafbf07c4810c552245b4700e3624018 (diff) |
rust: add bindings for bitmap.h
Makes the bitmap_copy_and_extend inline function available to Rust.
Adds F: to existing MAINTAINERS section BITMAP API BINDINGS [RUST].
-
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Suggested-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Burak Emir <bqe@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Diffstat (limited to 'rust/helpers/bitmap.c')
-rw-r--r-- | rust/helpers/bitmap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/helpers/bitmap.c b/rust/helpers/bitmap.c new file mode 100644 index 000000000000..a50e2f082e47 --- /dev/null +++ b/rust/helpers/bitmap.c @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include <linux/bitmap.h> + +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); +} |