[PATCH 5/8] v850: cast xchg() to void in set_rmb()
From: Al Viro
Date: Wed Feb 08 2006 - 15:01:22 EST
Date: 1135880405 -0500
Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
---
include/asm-v850/system.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
00e007cf433f2b768ab095fe62fd2a2a74eebecc
diff --git a/include/asm-v850/system.h b/include/asm-v850/system.h
index 107decb..cda8fa6 100644
--- a/include/asm-v850/system.h
+++ b/include/asm-v850/system.h
@@ -68,7 +68,7 @@ static inline int irqs_disabled (void)
#define rmb() mb ()
#define wmb() mb ()
#define read_barrier_depends() ((void)0)
-#define set_rmb(var, value) do { xchg (&var, value); } while (0)
+#define set_rmb(var, value) do { (void)xchg (&var, value); } while (0)
#define set_mb(var, value) set_rmb (var, value)
#define set_wmb(var, value) do { var = value; wmb (); } while (0)
--
0.99.9.GIT
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/