From e7061ad2321fd7f553095c5c13319931d177494b Mon Sep 17 00:00:00 2001 From: "Paul E. McKenney" Date: Tue, 12 May 2009 23:43:01 -0400 Subject: [PATCH] Fix some typos in PowerPC support code. Signed-off-by: Paul E. McKenney Signed-off-by: Mathieu Desnoyers --- arch_atomic_ppc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch_atomic_ppc.h b/arch_atomic_ppc.h index 13d56b4..587fb8b 100644 --- a/arch_atomic_ppc.h +++ b/arch_atomic_ppc.h @@ -24,7 +24,7 @@ #define BITS_PER_LONG (__SIZEOF_LONG__ * 8) #endif -#define ILLEGAL_INSTR .long 0xd00d00 +#define ILLEGAL_INSTR ".long 0xd00d00" #ifndef _INCLUDE_API_H @@ -46,7 +46,7 @@ unsigned int atomic_exchange_32(volatile unsigned int *addr, unsigned int val) "stwcx. %2,0,%1\n" /* else store conditional */ "bne- 1b\n" /* retry if lost reservation */ "isync\n" - : "=&r"(result), + : "=&r"(result) : "r"(addr), "r"(val) : "memory", "cc"); @@ -91,8 +91,8 @@ unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len) return 0; } -#define xchg(addr, v) (__typeof__(*(addr)) _atomic_exchange((addr), (v), \ - sizeof(*(addr)))) +#define xchg(addr, v) (__typeof__(*(addr))) _atomic_exchange((addr), (v), \ + sizeof(*(addr))) #endif /* #ifndef _INCLUDE_API_H */ -- 2.34.1