Rev 1408 | Rev 3031 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1408 | Rev 1964 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | 3 | ||
Line 4... | Line 4... | ||
4 | #ifndef __ASSEMBLY__ |
4 | #ifndef __ASSEMBLY__ |
5 | 5 | ||
6 | #ifdef __CHECKER__ |
6 | #ifdef __CHECKER__ |
7 | # define __user __attribute__((noderef, address_space(1))) |
7 | # define __user __attribute__((noderef, address_space(1))) |
8 | # define __kernel /* default address space */ |
8 | # define __kernel __attribute__((address_space(0))) |
9 | # define __safe __attribute__((safe)) |
9 | # define __safe __attribute__((safe)) |
10 | # define __force __attribute__((force)) |
10 | # define __force __attribute__((force)) |
11 | # define __nocast __attribute__((nocast)) |
11 | # define __nocast __attribute__((nocast)) |
12 | # define __iomem __attribute__((noderef, address_space(2))) |
12 | # define __iomem __attribute__((noderef, address_space(2))) |
13 | # define __acquires(x) __attribute__((context(x,0,1))) |
13 | # define __acquires(x) __attribute__((context(x,0,1))) |
14 | # define __releases(x) __attribute__((context(x,1,0))) |
14 | # define __releases(x) __attribute__((context(x,1,0))) |
15 | # define __acquire(x) __context__(x,1) |
15 | # define __acquire(x) __context__(x,1) |
- | 16 | # define __release(x) __context__(x,-1) |
|
- | 17 | # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) |
|
- | 18 | # define __percpu __attribute__((noderef, address_space(3))) |
|
- | 19 | #ifdef CONFIG_SPARSE_RCU_POINTER |
|
- | 20 | # define __rcu __attribute__((noderef, address_space(4))) |
|
- | 21 | #else |
|
16 | # define __release(x) __context__(x,-1) |
22 | # define __rcu |
17 | # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) |
23 | #endif |
18 | extern void __chk_user_ptr(const volatile void __user *); |
24 | extern void __chk_user_ptr(const volatile void __user *); |
19 | extern void __chk_io_ptr(const volatile void __iomem *); |
25 | extern void __chk_io_ptr(const volatile void __iomem *); |
20 | #else |
26 | #else |
Line 30... | Line 36... | ||
30 | # define __acquires(x) |
36 | # define __acquires(x) |
31 | # define __releases(x) |
37 | # define __releases(x) |
32 | # define __acquire(x) (void)0 |
38 | # define __acquire(x) (void)0 |
33 | # define __release(x) (void)0 |
39 | # define __release(x) (void)0 |
34 | # define __cond_lock(x,c) (c) |
40 | # define __cond_lock(x,c) (c) |
- | 41 | # define __percpu |
|
- | 42 | # define __rcu |
|
35 | #endif |
43 | #endif |
Line 36... | Line 44... | ||
36 | 44 | ||
Line 37... | Line 45... | ||
37 | #ifdef __KERNEL__ |
45 | #ifdef __KERNEL__ |