diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-11-07 03:58:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:30 -0500 |
commit | d9b5444eeb3a663ca4a625878b1421c9e9b18e8b (patch) | |
tree | 6cc32711116977944043c54e0c196c75358916be /include/asm-cris/atomic.h | |
parent | 5f9c3cbcd5d41be597aef9c0ff64ebfc8a91cd6f (diff) |
[PATCH] cris: "extern inline" -> "static inline"
"extern inline" doesn't make much sense.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-cris/atomic.h')
-rw-r--r-- | include/asm-cris/atomic.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/asm-cris/atomic.h b/include/asm-cris/atomic.h index 70605b09e8b7..8c2e78304523 100644 --- a/include/asm-cris/atomic.h +++ b/include/asm-cris/atomic.h | |||
@@ -20,7 +20,7 @@ typedef struct { volatile int counter; } atomic_t; | |||
20 | 20 | ||
21 | /* These should be written in asm but we do it in C for now. */ | 21 | /* These should be written in asm but we do it in C for now. */ |
22 | 22 | ||
23 | extern __inline__ void atomic_add(int i, volatile atomic_t *v) | 23 | static inline void atomic_add(int i, volatile atomic_t *v) |
24 | { | 24 | { |
25 | unsigned long flags; | 25 | unsigned long flags; |
26 | cris_atomic_save(v, flags); | 26 | cris_atomic_save(v, flags); |
@@ -28,7 +28,7 @@ extern __inline__ void atomic_add(int i, volatile atomic_t *v) | |||
28 | cris_atomic_restore(v, flags); | 28 | cris_atomic_restore(v, flags); |
29 | } | 29 | } |
30 | 30 | ||
31 | extern __inline__ void atomic_sub(int i, volatile atomic_t *v) | 31 | static inline void atomic_sub(int i, volatile atomic_t *v) |
32 | { | 32 | { |
33 | unsigned long flags; | 33 | unsigned long flags; |
34 | cris_atomic_save(v, flags); | 34 | cris_atomic_save(v, flags); |
@@ -36,7 +36,7 @@ extern __inline__ void atomic_sub(int i, volatile atomic_t *v) | |||
36 | cris_atomic_restore(v, flags); | 36 | cris_atomic_restore(v, flags); |
37 | } | 37 | } |
38 | 38 | ||
39 | extern __inline__ int atomic_add_return(int i, volatile atomic_t *v) | 39 | static inline int atomic_add_return(int i, volatile atomic_t *v) |
40 | { | 40 | { |
41 | unsigned long flags; | 41 | unsigned long flags; |
42 | int retval; | 42 | int retval; |
@@ -48,7 +48,7 @@ extern __inline__ int atomic_add_return(int i, volatile atomic_t *v) | |||
48 | 48 | ||
49 | #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0) | 49 | #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0) |
50 | 50 | ||
51 | extern __inline__ int atomic_sub_return(int i, volatile atomic_t *v) | 51 | static inline int atomic_sub_return(int i, volatile atomic_t *v) |
52 | { | 52 | { |
53 | unsigned long flags; | 53 | unsigned long flags; |
54 | int retval; | 54 | int retval; |
@@ -58,7 +58,7 @@ extern __inline__ int atomic_sub_return(int i, volatile atomic_t *v) | |||
58 | return retval; | 58 | return retval; |
59 | } | 59 | } |
60 | 60 | ||
61 | extern __inline__ int atomic_sub_and_test(int i, volatile atomic_t *v) | 61 | static inline int atomic_sub_and_test(int i, volatile atomic_t *v) |
62 | { | 62 | { |
63 | int retval; | 63 | int retval; |
64 | unsigned long flags; | 64 | unsigned long flags; |
@@ -68,7 +68,7 @@ extern __inline__ int atomic_sub_and_test(int i, volatile atomic_t *v) | |||
68 | return retval; | 68 | return retval; |
69 | } | 69 | } |
70 | 70 | ||
71 | extern __inline__ void atomic_inc(volatile atomic_t *v) | 71 | static inline void atomic_inc(volatile atomic_t *v) |
72 | { | 72 | { |
73 | unsigned long flags; | 73 | unsigned long flags; |
74 | cris_atomic_save(v, flags); | 74 | cris_atomic_save(v, flags); |
@@ -76,7 +76,7 @@ extern __inline__ void atomic_inc(volatile atomic_t *v) | |||
76 | cris_atomic_restore(v, flags); | 76 | cris_atomic_restore(v, flags); |
77 | } | 77 | } |
78 | 78 | ||
79 | extern __inline__ void atomic_dec(volatile atomic_t *v) | 79 | static inline void atomic_dec(volatile atomic_t *v) |
80 | { | 80 | { |
81 | unsigned long flags; | 81 | unsigned long flags; |
82 | cris_atomic_save(v, flags); | 82 | cris_atomic_save(v, flags); |
@@ -84,7 +84,7 @@ extern __inline__ void atomic_dec(volatile atomic_t *v) | |||
84 | cris_atomic_restore(v, flags); | 84 | cris_atomic_restore(v, flags); |
85 | } | 85 | } |
86 | 86 | ||
87 | extern __inline__ int atomic_inc_return(volatile atomic_t *v) | 87 | static inline int atomic_inc_return(volatile atomic_t *v) |
88 | { | 88 | { |
89 | unsigned long flags; | 89 | unsigned long flags; |
90 | int retval; | 90 | int retval; |
@@ -94,7 +94,7 @@ extern __inline__ int atomic_inc_return(volatile atomic_t *v) | |||
94 | return retval; | 94 | return retval; |
95 | } | 95 | } |
96 | 96 | ||
97 | extern __inline__ int atomic_dec_return(volatile atomic_t *v) | 97 | static inline int atomic_dec_return(volatile atomic_t *v) |
98 | { | 98 | { |
99 | unsigned long flags; | 99 | unsigned long flags; |
100 | int retval; | 100 | int retval; |
@@ -103,7 +103,7 @@ extern __inline__ int atomic_dec_return(volatile atomic_t *v) | |||
103 | cris_atomic_restore(v, flags); | 103 | cris_atomic_restore(v, flags); |
104 | return retval; | 104 | return retval; |
105 | } | 105 | } |
106 | extern __inline__ int atomic_dec_and_test(volatile atomic_t *v) | 106 | static inline int atomic_dec_and_test(volatile atomic_t *v) |
107 | { | 107 | { |
108 | int retval; | 108 | int retval; |
109 | unsigned long flags; | 109 | unsigned long flags; |
@@ -113,7 +113,7 @@ extern __inline__ int atomic_dec_and_test(volatile atomic_t *v) | |||
113 | return retval; | 113 | return retval; |
114 | } | 114 | } |
115 | 115 | ||
116 | extern __inline__ int atomic_inc_and_test(volatile atomic_t *v) | 116 | static inline int atomic_inc_and_test(volatile atomic_t *v) |
117 | { | 117 | { |
118 | int retval; | 118 | int retval; |
119 | unsigned long flags; | 119 | unsigned long flags; |