Rev 3031 | Rev 3480 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3031 | Rev 3243 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | # define __kernel __attribute__((address_space(0))) |
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 __must_hold(x) __attribute__((context(x,1,1))) |
|
13 | # define __acquires(x) __attribute__((context(x,0,1))) |
14 | # define __acquires(x) __attribute__((context(x,0,1))) |
14 | # define __releases(x) __attribute__((context(x,1,0))) |
15 | # define __releases(x) __attribute__((context(x,1,0))) |
15 | # define __acquire(x) __context__(x,1) |
16 | # define __acquire(x) __context__(x,1) |
16 | # define __release(x) __context__(x,-1) |
17 | # define __release(x) __context__(x,-1) |
17 | # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) |
18 | # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) |
Line 31... | Line 32... | ||
31 | # define __nocast |
32 | # define __nocast |
32 | # define __iomem |
33 | # define __iomem |
33 | # define __chk_user_ptr(x) (void)0 |
34 | # define __chk_user_ptr(x) (void)0 |
34 | # define __chk_io_ptr(x) (void)0 |
35 | # define __chk_io_ptr(x) (void)0 |
35 | # define __builtin_warning(x, y...) (1) |
36 | # define __builtin_warning(x, y...) (1) |
- | 37 | # define __must_hold(x) |
|
36 | # define __acquires(x) |
38 | # define __acquires(x) |
37 | # define __releases(x) |
39 | # define __releases(x) |
38 | # define __acquire(x) (void)0 |
40 | # define __acquire(x) (void)0 |
39 | # define __release(x) (void)0 |
41 | # define __release(x) (void)0 |
40 | # define __cond_lock(x,c) (c) |
42 | # define __cond_lock(x,c) (c) |
41 | # define __percpu |
43 | # define __percpu |
42 | # define __rcu |
44 | # define __rcu |
43 | #endif |
45 | #endif |
Line -... | Line 46... | ||
- | 46 | ||
- | 47 | /* Indirect macros required for expanded argument pasting, eg. __LINE__. */ |
|
- | 48 | #define ___PASTE(a,b) a##b |
|
- | 49 | #define __PASTE(a,b) ___PASTE(a,b) |
|
44 | 50 | ||
Line 45... | Line 51... | ||
45 | #ifdef __KERNEL__ |
51 | #ifdef __KERNEL__ |
46 | 52 | ||
47 | #ifdef __GNUC__ |
53 | #ifdef __GNUC__ |