public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] asm-generic: fix local_add_unless macro
@ 2009-01-22 14:07 Roel Kluin
  2009-01-22 18:05 ` Mathieu Desnoyers
  2009-01-23 15:45 ` Mathieu Desnoyers
  0 siblings, 2 replies; 5+ messages in thread
From: Roel Kluin @ 2009-01-22 14:07 UTC (permalink / raw)
  To: Mathieu Desnoyers, lkml

When this macro isn't called with 'a' this will 
result in a build failure.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/include/asm-generic/local.h b/include/asm-generic/local.h
index dbd6150..fc21844 100644
--- 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-12 21:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22 14:07 [PATCH] asm-generic: fix local_add_unless macro Roel Kluin
2009-01-22 18:05 ` Mathieu Desnoyers
2009-01-23 15:45 ` Mathieu Desnoyers
2009-05-12 21:31   ` Roel Kluin
2009-05-12 21:47     ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox