projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22ef37e
)
asm-generic: fix local_add_unless macro
author
Roel Kluin
<
[email protected]
>
Mon, 18 May 2009 01:18:58 +0000
(18:18 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 18 May 2009 15:34:08 +0000
(08:34 -0700)
`local_add_unless(x, y, z)' will be expanded to `(&(x)->y, (y), (x))', but
`&(x)->y' should be `&(x)->a'
Signed-off-by: Roel Kluin <
[email protected]
>
Cc: Mathieu Desnoyers <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/asm-generic/local.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/local.h
b/include/asm-generic/local.h
index dbd6150763e90a0d1fb52c559886639b641a3ff1..fc218444e3153cc29c8610388163a806f8cc5f4f 100644
(file)
--- a/
include/asm-generic/local.h
+++ b/
include/asm-generic/local.h
@@
-42,7
+42,7
@@
typedef struct
#define local_cmpxchg(l, o, n) atomic_long_cmpxchg((&(l)->a), (o), (n))
#define local_xchg(l, n) atomic_long_xchg((&(l)->a), (n))
-#define local_add_unless(l,
a, u) atomic_long_add_unless((&(l)->a), (
a), (u))
+#define local_add_unless(l,
_a, u) atomic_long_add_unless((&(l)->a), (_
a), (u))
#define local_inc_not_zero(l) atomic_long_inc_not_zero(&(l)->a)
/* Non-atomic variants, ie. preemption disabled and won't be touched