Commit 64c00c10 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Kill spurious semicolons in some system.h macros

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3085f02b
...@@ -78,9 +78,9 @@ enum sparc_cpu { ...@@ -78,9 +78,9 @@ enum sparc_cpu {
#define nop() __asm__ __volatile__ ("nop") #define nop() __asm__ __volatile__ ("nop")
#define membar(type) __asm__ __volatile__ ("membar " type : : : "memory"); #define membar(type) __asm__ __volatile__ ("membar " type : : : "memory")
#define mb() \ #define mb() \
membar("#LoadLoad | #LoadStore | #StoreStore | #StoreLoad"); membar("#LoadLoad | #LoadStore | #StoreStore | #StoreLoad")
#define rmb() membar("#LoadLoad") #define rmb() membar("#LoadLoad")
#define wmb() membar("#StoreStore") #define wmb() membar("#StoreStore")
#define read_barrier_depends() do { } while(0) #define read_barrier_depends() do { } while(0)
...@@ -95,9 +95,9 @@ enum sparc_cpu { ...@@ -95,9 +95,9 @@ enum sparc_cpu {
#define smp_wmb() wmb() #define smp_wmb() wmb()
#define smp_read_barrier_depends() read_barrier_depends() #define smp_read_barrier_depends() read_barrier_depends()
#else #else
#define smp_mb() __asm__ __volatile__("":::"memory"); #define smp_mb() __asm__ __volatile__("":::"memory")
#define smp_rmb() __asm__ __volatile__("":::"memory"); #define smp_rmb() __asm__ __volatile__("":::"memory")
#define smp_wmb() __asm__ __volatile__("":::"memory"); #define smp_wmb() __asm__ __volatile__("":::"memory")
#define smp_read_barrier_depends() do { } while(0) #define smp_read_barrier_depends() do { } while(0)
#endif #endif
...@@ -107,7 +107,7 @@ enum sparc_cpu { ...@@ -107,7 +107,7 @@ enum sparc_cpu {
/* Performance counter register access. */ /* Performance counter register access. */
#define read_pcr(__p) __asm__ __volatile__("rd %%pcr, %0" : "=r" (__p)) #define read_pcr(__p) __asm__ __volatile__("rd %%pcr, %0" : "=r" (__p))
#define write_pcr(__p) __asm__ __volatile__("wr %0, 0x0, %%pcr" : : "r" (__p)); #define write_pcr(__p) __asm__ __volatile__("wr %0, 0x0, %%pcr" : : "r" (__p))
#define read_pic(__p) __asm__ __volatile__("rd %%pic, %0" : "=r" (__p)) #define read_pic(__p) __asm__ __volatile__("rd %%pic, %0" : "=r" (__p))
/* Blackbird errata workaround. See commentary in /* Blackbird errata workaround. See commentary in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment