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