aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/atomic.h
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-10-09 22:31:22 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-24 11:17:02 -0400
commit72b7fb5fda25e1213cb9f63bf712161c66877552 (patch)
treed34c18c390a74bf1ba7f933a6ca7487574b892f6 /arch/s390/include/asm/atomic.h
parenteb0bf929d5228ca0eb2758585f2e4e25aa20427e (diff)
s390/atomic: use 'unsigned int' instead of 'unsigned long' for atomic_*_mask()
The type of 'v->counter' is always 'int', and related inline assembly code also process 'int', so use 'unsigned int' instead of 'unsigned long' for the 'mask'. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/atomic.h')
-rw-r--r--arch/s390/include/asm/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/atomic.h b/arch/s390/include/asm/atomic.h
index 47825e5a82eb..fa9aaf7144b7 100644
--- a/arch/s390/include/asm/atomic.h
+++ b/arch/s390/include/asm/atomic.h
@@ -113,12 +113,12 @@ static inline void atomic_add(int i, atomic_t *v)
113#define atomic_dec_return(_v) atomic_sub_return(1, _v) 113#define atomic_dec_return(_v) atomic_sub_return(1, _v)
114#define atomic_dec_and_test(_v) (atomic_sub_return(1, _v) == 0) 114#define atomic_dec_and_test(_v) (atomic_sub_return(1, _v) == 0)
115 115
116static inline void atomic_clear_mask(unsigned long mask, atomic_t *v) 116static inline void atomic_clear_mask(unsigned int mask, atomic_t *v)
117{ 117{
118 __ATOMIC_LOOP(v, ~mask, __ATOMIC_AND); 118 __ATOMIC_LOOP(v, ~mask, __ATOMIC_AND);
119} 119}
120 120
121static inline void atomic_set_mask(unsigned long mask, atomic_t *v) 121static inline void atomic_set_mask(unsigned int mask, atomic_t *v)
122{ 122{
123 __ATOMIC_LOOP(v, mask, __ATOMIC_OR); 123 __ATOMIC_LOOP(v, mask, __ATOMIC_OR);
124} 124}