Skip to content

Commit 32fb5d7

Browse files
committed
arm64: atomics: Remove '&' from '+&' asm constraint in lse atomics
The lse implementation of atomic64_dec_if_positive uses the '+&' constraint, but the '&' is redundant and confusing in this case, since early clobber on a read/write operand is a strange concept. Replace the constraint with '+'. Signed-off-by: Will Deacon <[email protected]>
1 parent c396fe7 commit 32fb5d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/atomic_lse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ static inline long atomic64_dec_if_positive(atomic64_t *v)
435435
" sub x30, x30, %[ret]\n"
436436
" cbnz x30, 1b\n"
437437
"2:")
438-
: [ret] "+&r" (x0), [v] "+Q" (v->counter)
438+
: [ret] "+r" (x0), [v] "+Q" (v->counter)
439439
:
440440
: __LL_SC_CLOBBERS, "cc", "memory");
441441

0 commit comments

Comments
 (0)