[PATCH] x86-64: clean up local_add/sub arguments
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4b6a455c74
commit
2ade814736
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue