aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/include/asm/cmpxchg.h')
-rw-r--r--arch/parisc/include/asm/cmpxchg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/cmpxchg.h b/arch/parisc/include/asm/cmpxchg.h
index 068958575871..a736dc59bbef 100644
--- a/arch/parisc/include/asm/cmpxchg.h
+++ b/arch/parisc/include/asm/cmpxchg.h
@@ -72,7 +72,7 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size)
72#endif 72#endif
73 case 4: return __cmpxchg_u32((unsigned int *)ptr, 73 case 4: return __cmpxchg_u32((unsigned int *)ptr,
74 (unsigned int)old, (unsigned int)new_); 74 (unsigned int)old, (unsigned int)new_);
75 case 1: return __cmpxchg_u8((u8 *)ptr, (u8)old, (u8)new_); 75 case 1: return __cmpxchg_u8((u8 *)ptr, old & 0xff, new_ & 0xff);
76 } 76 }
77 __cmpxchg_called_with_bad_pointer(); 77 __cmpxchg_called_with_bad_pointer();
78 return old; 78 return old;