diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:15 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:15 -0400 |
commit | 21a151d8ca3aa74ee79f9791a9d4dc370d3e0636 (patch) | |
tree | 8556b3a32ded6a49225beb4a7aa4447cc87a0e00 /include/asm-mips/local.h | |
parent | 49a89efbbbcc178a39555c43bd59a7593c429664 (diff) |
[MIPS] checkfiles: Fix "need space after that ','" errors.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/local.h')
-rw-r--r-- | include/asm-mips/local.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/asm-mips/local.h b/include/asm-mips/local.h index f9a5ce5c9af1..f96fd59e0845 100644 --- a/include/asm-mips/local.h +++ b/include/asm-mips/local.h | |||
@@ -15,10 +15,10 @@ typedef struct | |||
15 | #define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) } | 15 | #define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) } |
16 | 16 | ||
17 | #define local_read(l) atomic_long_read(&(l)->a) | 17 | #define local_read(l) atomic_long_read(&(l)->a) |
18 | #define local_set(l,i) atomic_long_set(&(l)->a, (i)) | 18 | #define local_set(l, i) atomic_long_set(&(l)->a, (i)) |
19 | 19 | ||
20 | #define local_add(i,l) atomic_long_add((i),(&(l)->a)) | 20 | #define local_add(i, l) atomic_long_add((i), (&(l)->a)) |
21 | #define local_sub(i,l) atomic_long_sub((i),(&(l)->a)) | 21 | #define local_sub(i, l) atomic_long_sub((i), (&(l)->a)) |
22 | #define local_inc(l) atomic_long_inc(&(l)->a) | 22 | #define local_inc(l) atomic_long_inc(&(l)->a) |
23 | #define local_dec(l) atomic_long_dec(&(l)->a) | 23 | #define local_dec(l) atomic_long_dec(&(l)->a) |
24 | 24 | ||
@@ -117,7 +117,7 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
117 | 117 | ||
118 | #define local_cmpxchg(l, o, n) \ | 118 | #define local_cmpxchg(l, o, n) \ |
119 | ((long)cmpxchg_local(&((l)->a.counter), (o), (n))) | 119 | ((long)cmpxchg_local(&((l)->a.counter), (o), (n))) |
120 | #define local_xchg(l, n) (xchg_local(&((l)->a.counter),(n))) | 120 | #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n))) |
121 | 121 | ||
122 | /** | 122 | /** |
123 | * local_add_unless - add unless the number is a given value | 123 | * local_add_unless - add unless the number is a given value |
@@ -138,8 +138,8 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
138 | }) | 138 | }) |
139 | #define local_inc_not_zero(l) local_add_unless((l), 1, 0) | 139 | #define local_inc_not_zero(l) local_add_unless((l), 1, 0) |
140 | 140 | ||
141 | #define local_dec_return(l) local_sub_return(1,(l)) | 141 | #define local_dec_return(l) local_sub_return(1, (l)) |
142 | #define local_inc_return(l) local_add_return(1,(l)) | 142 | #define local_inc_return(l) local_add_return(1, (l)) |
143 | 143 | ||
144 | /* | 144 | /* |
145 | * local_sub_and_test - subtract value from variable and test result | 145 | * local_sub_and_test - subtract value from variable and test result |
@@ -150,7 +150,7 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
150 | * true if the result is zero, or false for all | 150 | * true if the result is zero, or false for all |
151 | * other cases. | 151 | * other cases. |
152 | */ | 152 | */ |
153 | #define local_sub_and_test(i,l) (local_sub_return((i), (l)) == 0) | 153 | #define local_sub_and_test(i, l) (local_sub_return((i), (l)) == 0) |
154 | 154 | ||
155 | /* | 155 | /* |
156 | * local_inc_and_test - increment and test | 156 | * local_inc_and_test - increment and test |
@@ -181,7 +181,7 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
181 | * if the result is negative, or false when | 181 | * if the result is negative, or false when |
182 | * result is greater than or equal to zero. | 182 | * result is greater than or equal to zero. |
183 | */ | 183 | */ |
184 | #define local_add_negative(i,l) (local_add_return(i, (l)) < 0) | 184 | #define local_add_negative(i, l) (local_add_return(i, (l)) < 0) |
185 | 185 | ||
186 | /* Use these for per-cpu local_t variables: on some archs they are | 186 | /* Use these for per-cpu local_t variables: on some archs they are |
187 | * much more efficient than these naive implementations. Note they take | 187 | * much more efficient than these naive implementations. Note they take |
@@ -190,8 +190,8 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
190 | 190 | ||
191 | #define __local_inc(l) ((l)->a.counter++) | 191 | #define __local_inc(l) ((l)->a.counter++) |
192 | #define __local_dec(l) ((l)->a.counter++) | 192 | #define __local_dec(l) ((l)->a.counter++) |
193 | #define __local_add(i,l) ((l)->a.counter+=(i)) | 193 | #define __local_add(i, l) ((l)->a.counter+=(i)) |
194 | #define __local_sub(i,l) ((l)->a.counter-=(i)) | 194 | #define __local_sub(i, l) ((l)->a.counter-=(i)) |
195 | 195 | ||
196 | /* Need to disable preemption for the cpu local counters otherwise we could | 196 | /* Need to disable preemption for the cpu local counters otherwise we could |
197 | still access a variable of a previous CPU in a non atomic way. */ | 197 | still access a variable of a previous CPU in a non atomic way. */ |