Skip to contentSkip to conversation

ppc32: Bogus definition of __cmpxchg_u32()

PATCH New Benjamin Herrenschmidt 1 participant 1 message Feb 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32: Bogus definition of __cmpxchg_u32()

Hi !

This patch fix bogus types in the definition of __cmpxchg_u32() on ppc32, please apply.

include/asm-ppc/system.h +2 -2
Index: linux-work/include/asm-ppc/system.h
===================================================================
@@ -152,9 +152,9 @@
 #define __HAVE_ARCH_CMPXCHG	1
 
 static __inline__ unsigned long
-__cmpxchg_u32(volatile int *p, int old, int new)
+__cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new)
 {
-	int prev;
+	unsigned int prev;
 
 	__asm__ __volatile__ ("\n\
 1:	lwarx	%0,0,%2 \n\