blob: 85be08b50a7c39e0627e4a2bbeaec110bf591ee5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// SPDX-License-Identifier: GPL-2.0
#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);
}
|