From: Andi Kleen Date: Mon, 12 Sep 2005 16:49:25 +0000 (+0200) Subject: [PATCH] x86-64: clean up local_add/sub arguments X-Git-Tag: v2.6.14-rc1~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ade81473636b33aaac64495f89a7dc572c529f0;p=linux-2.6 [PATCH] x86-64: clean up local_add/sub arguments Signed-off-by: Linus Torvalds --- diff --git a/include/asm-x86_64/local.h b/include/asm-x86_64/local.h index c954f15c1a..3e72c41727 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"