diff options
author | Andi Kleen <ak@suse.de> | 2005-09-12 18:49:25 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 10:50:59 -0700 |
commit | 2ade81473636b33aaac64495f89a7dc572c529f0 (patch) | |
tree | c4fb9afa946d2c9e0a25be5612bfb2a80069c38a | |
parent | 4b6a455c7472dabcc624faa740a297d50815b4c7 (diff) | |
download | kernel_samsung_smdk4412-2ade81473636b33aaac64495f89a7dc572c529f0.zip kernel_samsung_smdk4412-2ade81473636b33aaac64495f89a7dc572c529f0.tar.gz kernel_samsung_smdk4412-2ade81473636b33aaac64495f89a7dc572c529f0.tar.bz2 |
[PATCH] x86-64: clean up local_add/sub arguments
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/asm-x86_64/local.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-x86_64/local.h b/include/asm-x86_64/local.h index c954f15..3e72c41 100644 --- a/include/asm-x86_64/local.h +++ b/include/asm-x86_64/local.h @@ -29,7 +29,7 @@ static __inline__ void local_dec(local_t *v) :"m" (v->counter)); } -static __inline__ void local_add(unsigned long i, local_t *v) +static __inline__ void local_add(unsigned int i, local_t *v) { __asm__ __volatile__( "addl %1,%0" @@ -37,7 +37,7 @@ static __inline__ void local_add(unsigned long i, local_t *v) :"ir" (i), "m" (v->counter)); } -static __inline__ void local_sub(unsigned long i, local_t *v) +static __inline__ void local_sub(unsigned int i, local_t *v) { __asm__ __volatile__( "subl %1,%0" |