* [PATCH] ppc32: Bogus definition of __cmpxchg_u32()
@ 2005-02-24 0:22 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2005-02-24 0:22 UTC (permalink / raw)
To: Andrew Morton, Linus Torvalds; +Cc: linuxppc-dev list
Hi !
This patch fix bogus types in the definition of __cmpxchg_u32() on
ppc32, please apply.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Index: linux-work/include/asm-ppc/system.h
===================================================================
--- linux-work.orig/include/asm-ppc/system.h 2005-01-24 17:09:50.000000000 +1100
+++ linux-work/include/asm-ppc/system.h 2005-02-24 10:55:11.000000000 +1100
@@ -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\
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-24 0:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24 0:22 [PATCH] ppc32: Bogus definition of __cmpxchg_u32() Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).