diff -r adf7f391be71 xen/include/asm-powerpc/system.h --- a/xen/include/asm-powerpc/system.h Thu Apr 05 06:51:53 2007 +0100 +++ b/xen/include/asm-powerpc/system.h Thu Jan 30 15:39:05 2031 -0600 @@ -28,7 +28,11 @@ #include #include -#define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) +#define xchg(ptr,x) \ +({ \ + __typeof__(*(ptr)) _x_ = (x); \ + (__typeof__(*(ptr))) __xchg((ptr), (unsigned long)_x_, sizeof(*(ptr))); \ +}) static __inline__ unsigned long __xchg_u32(volatile int *m, unsigned long val)