xref: /linux/rust/helpers/bitops.c (revision 07fdad3a93756b872da7b53647715c48d0f4a2d0)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/bitops.h>
4 
5 void rust_helper___set_bit(unsigned long nr, unsigned long *addr)
6 {
7 	__set_bit(nr, addr);
8 }
9 
10 void rust_helper___clear_bit(unsigned long nr, unsigned long *addr)
11 {
12 	__clear_bit(nr, addr);
13 }
14 
15 void rust_helper_set_bit(unsigned long nr, volatile unsigned long *addr)
16 {
17 	set_bit(nr, addr);
18 }
19 
20 void rust_helper_clear_bit(unsigned long nr, volatile unsigned long *addr)
21 {
22 	clear_bit(nr, addr);
23 }
24