]> git.neil.brown.name Git - history.git/commitdiff
[SPARC32]: Fix syntax errors from smp_{mb,rmb,wmb} on sparc32.
authorMeelis Roos <mroos@linux.ee>
Thu, 10 Feb 2005 09:12:02 +0000 (01:12 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 10 Feb 2005 09:12:02 +0000 (01:12 -0800)
smp_mb(), smp_rmp() and smp_wmb() definitions have a trailing semicolon
and cause compilation errors in single statement context, like
if-then-else on line 358 in include/linux/skbuff.h. This patch removes
all three offending semicolons to make it compile.

Signed-off-by: Meelis Roos <mroos@linux.ee>
Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc/system.h

index 808fb0b96e410506b5a44ef90c0f19dceb042927..4fb0ac34c06931fa13f107fef8953087907a1d67 100644 (file)
@@ -195,9 +195,9 @@ static inline unsigned long getipl(void)
 #define read_barrier_depends() do { } while(0)
 #define set_mb(__var, __value)  do { __var = __value; mb(); } while(0)
 #define set_wmb(__var, __value) set_mb(__var, __value)
-#define smp_mb()       __asm__ __volatile__("":::"memory");
-#define smp_rmb()      __asm__ __volatile__("":::"memory");
-#define smp_wmb()      __asm__ __volatile__("":::"memory");
+#define smp_mb()       __asm__ __volatile__("":::"memory")
+#define smp_rmb()      __asm__ __volatile__("":::"memory")
+#define smp_wmb()      __asm__ __volatile__("":::"memory")
 #define smp_read_barrier_depends()     do { } while(0)
 
 #define nop() __asm__ __volatile__ ("nop");