Commit fddaeff6 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds

[PATCH] ppc32: Bogus definition of __cmpxchg_u32()

This patch fix bogus types in the definition of __cmpxchg_u32() on ppc32.
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 241d9326
......@@ -152,9 +152,9 @@ extern inline void * xchg_ptr(void * m, void * val)
#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\
......
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