[<prev] [next>] [day] [month] [year] [list]
Message-ID: <swf4pux5eu0.wl%takata@linux-m32r.org>
Date: Mon, 25 Sep 2006 02:55:51 +0900
From: Hirokazu Takata <takata@...ux-m32r.org>
To: Andrew Morton <akpm@...l.org>
Cc: linux-kernel@...r.kernel.org, takata@...ux-m32r.org
Subject: [PATCH 2.6.18] m32r: Fix "value computed not used" warnings
Fix to remove annoying gcc-4.1 warnings "value computed not used"
for m32r; Modify set_mb to cast to void for SMP.
Signed-off-by: Hirokazu Takata <takata@...ux-m32r.org>
---
include/asm-m32r/system.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/asm-m32r/system.h b/include/asm-m32r/system.h
index 9e618af..4ce0619 100644
--- a/include/asm-m32r/system.h
+++ b/include/asm-m32r/system.h
@@ -328,15 +328,15 @@ #define smp_mb() mb()
#define smp_rmb() rmb()
#define smp_wmb() wmb()
#define smp_read_barrier_depends() read_barrier_depends()
+#define set_mb(var, value) do { (void) xchg(&var, value); } while (0)
#else
#define smp_mb() barrier()
#define smp_rmb() barrier()
#define smp_wmb() barrier()
#define smp_read_barrier_depends() do { } while (0)
+#define set_mb(var, value) do { var = value; barrier(); } while (0)
#endif
-#define set_mb(var, value) do { xchg(&var, value); } while (0)
-
#define arch_align_stack(x) (x)
#endif /* _ASM_M32R_SYSTEM_H */
--
Hirokazu Takata <takata@...ux-m32r.org>
Linux/M32R Project: http://www.linux-m32r.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists