diff options
author | Andi Kleen <ak@suse.de> | 2005-09-12 16:49:25 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 17:50:59 (GMT) |
commit | 2ade81473636b33aaac64495f89a7dc572c529f0 (patch) | |
tree | c4fb9afa946d2c9e0a25be5612bfb2a80069c38a /include/asm-x86_64 | |
parent | 4b6a455c7472dabcc624faa740a297d50815b4c7 (diff) | |
download | linux-2ade81473636b33aaac64495f89a7dc572c529f0.tar.xz |
[PATCH] x86-64: clean up local_add/sub arguments
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64')
-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" |