Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Burak Emir and committed by
Yury Norov (NVIDIA)
0452b4ab 4688bb13

+12
+1
MAINTAINERS
··· 4299 4299 BITMAP API BINDINGS [RUST] 4300 4300 M: Yury Norov <yury.norov@gmail.com> 4301 4301 S: Maintained 4302 + F: rust/helpers/bitmap.c 4302 4303 F: rust/helpers/cpumask.c 4303 4304 4304 4305 BITOPS API
+1
rust/bindings/bindings_helper.h
··· 36 36 #include <drm/drm_ioctl.h> 37 37 #include <kunit/test.h> 38 38 #include <linux/auxiliary_bus.h> 39 + #include <linux/bitmap.h> 39 40 #include <linux/blk-mq.h> 40 41 #include <linux/blk_types.h> 41 42 #include <linux/blkdev.h>
+9
rust/helpers/bitmap.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 2 + 3 + #include <linux/bitmap.h> 4 + 5 + void rust_helper_bitmap_copy_and_extend(unsigned long *to, const unsigned long *from, 6 + unsigned int count, unsigned int size) 7 + { 8 + bitmap_copy_and_extend(to, from, count, size); 9 + }
+1
rust/helpers/helpers.c
··· 8 8 */ 9 9 10 10 #include "auxiliary.c" 11 + #include "bitmap.c" 11 12 #include "blk.c" 12 13 #include "bug.c" 13 14 #include "build_assert.c"