summaryrefslogtreecommitdiff
path: root/rust/helpers/bitops.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/bitops.c')
-rw-r--r--rust/helpers/bitops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/helpers/bitops.c b/rust/helpers/bitops.c
index e79ef9e6d98f..271b8a712dee 100644
--- a/rust/helpers/bitops.c
+++ b/rust/helpers/bitops.c
@@ -3,21 +3,25 @@
#include <linux/bitops.h>
#include <linux/find.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);