Fix some typos in PowerPC support code.
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 13 May 2009 03:43:01 +0000 (23:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 13 May 2009 03:43:01 +0000 (23:43 -0400)
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
arch_atomic_ppc.h

index 13d56b4a3a16b2d6e1293e75aede6918c9bcd422..587fb8bbcc112dd8a97ed13b278d95c3bd4df7eb 100644 (file)
@@ -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 */
 
This page took 0.026295 seconds and 4 git commands to generate.