diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2025-12-17 13:51:30 +0000 |
|---|---|---|
| committer | Yury Norov (NVIDIA) <yury.norov@gmail.com> | 2026-01-06 12:14:10 -0500 |
| commit | 8618307b52ef2fa5caa87f1b7938125cb410e777 (patch) | |
| tree | 0cf06d7b96ae6f632d4eafda42074db8b3fe3e73 /rust | |
| parent | ac3dc186df4eb53f20bf519b352b8a76328bea12 (diff) | |
rust: bitops: add __rust_helper to helpers
This is needed to inline these helpers into Rust code.
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/helpers/bitops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/helpers/bitops.c b/rust/helpers/bitops.c index 5d0861d29d3f..f875692ead30 100644 --- a/rust/helpers/bitops.c +++ b/rust/helpers/bitops.c @@ -2,21 +2,25 @@ #include <linux/bitops.h> +__rust_helper void rust_helper___set_bit(unsigned long nr, unsigned long *addr) { __set_bit(nr, addr); } +__rust_helper void rust_helper___clear_bit(unsigned long nr, unsigned long *addr) { __clear_bit(nr, addr); } +__rust_helper void rust_helper_set_bit(unsigned long nr, volatile unsigned long *addr) { set_bit(nr, addr); } +__rust_helper void rust_helper_clear_bit(unsigned long nr, volatile unsigned long *addr) { clear_bit(nr, addr); |
