From: Heiko Carstens Date: Mon, 1 Jul 2024 15:04:56 +0000 (+0200) Subject: s390/atomic_ops: Use symbolic names X-Git-Tag: v6.11-rc1~126^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2ed8367bfa55a2ad3adfe7a59b79b82905df740;p=thirdparty%2Fkernel%2Flinux.git s390/atomic_ops: Use symbolic names Consistently use symbolic names in all atomic ops inline assemblies. Reviewed-by: Juergen Christ Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/include/asm/atomic_ops.h b/arch/s390/include/asm/atomic_ops.h index 7fa5f96a553a4..7f47e29278041 100644 --- a/arch/s390/include/asm/atomic_ops.h +++ b/arch/s390/include/asm/atomic_ops.h @@ -13,16 +13,16 @@ static __always_inline int __atomic_read(const atomic_t *v) int c; asm volatile( - " l %0,%1\n" - : "=d" (c) : "R" (v->counter)); + " l %[c],%[counter]\n" + : [c] "=d" (c) : [counter] "R" (v->counter)); return c; } static __always_inline void __atomic_set(atomic_t *v, int i) { asm volatile( - " st %1,%0\n" - : "=R" (v->counter) : "d" (i)); + " st %[i],%[counter]\n" + : [counter] "=R" (v->counter) : [i] "d" (i)); } static __always_inline s64 __atomic64_read(const atomic64_t *v) @@ -30,16 +30,16 @@ static __always_inline s64 __atomic64_read(const atomic64_t *v) s64 c; asm volatile( - " lg %0,%1\n" - : "=d" (c) : "RT" (v->counter)); + " lg %[c],%[counter]\n" + : [c] "=d" (c) : [counter] "RT" (v->counter)); return c; } static __always_inline void __atomic64_set(atomic64_t *v, s64 i) { asm volatile( - " stg %1,%0\n" - : "=RT" (v->counter) : "d" (i)); + " stg %[i],%[counter]\n" + : [counter] "=RT" (v->counter) : [i] "d" (i)); } #ifdef CONFIG_HAVE_MARCH_Z196_FEATURES