mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-09 11:30:02 +00:00
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>
This commit is contained in:
committed by
Yury Norov (NVIDIA)
parent
4688bb13da
commit
0452b4ab29
@@ -4299,6 +4299,7 @@ F: tools/lib/find_bit.c
|
|||||||
BITMAP API BINDINGS [RUST]
|
BITMAP API BINDINGS [RUST]
|
||||||
M: Yury Norov <yury.norov@gmail.com>
|
M: Yury Norov <yury.norov@gmail.com>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
F: rust/helpers/bitmap.c
|
||||||
F: rust/helpers/cpumask.c
|
F: rust/helpers/cpumask.c
|
||||||
|
|
||||||
BITOPS API
|
BITOPS API
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
#include <drm/drm_ioctl.h>
|
#include <drm/drm_ioctl.h>
|
||||||
#include <kunit/test.h>
|
#include <kunit/test.h>
|
||||||
#include <linux/auxiliary_bus.h>
|
#include <linux/auxiliary_bus.h>
|
||||||
|
#include <linux/bitmap.h>
|
||||||
#include <linux/blk-mq.h>
|
#include <linux/blk-mq.h>
|
||||||
#include <linux/blk_types.h>
|
#include <linux/blk_types.h>
|
||||||
#include <linux/blkdev.h>
|
#include <linux/blkdev.h>
|
||||||
|
|||||||
9
rust/helpers/bitmap.c
Normal file
9
rust/helpers/bitmap.c
Normal file
@@ -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);
|
||||||
|
}
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "auxiliary.c"
|
#include "auxiliary.c"
|
||||||
|
#include "bitmap.c"
|
||||||
#include "blk.c"
|
#include "blk.c"
|
||||||
#include "bug.c"
|
#include "bug.c"
|
||||||
#include "build_assert.c"
|
#include "build_assert.c"
|
||||||
|
|||||||
Reference in New Issue
Block a user