]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/atomic: Consistent layering between atomic.h and atomic_ops.h
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 4 Dec 2024 11:30:59 +0000 (12:30 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 15 Dec 2024 14:13:43 +0000 (15:13 +0100)
commit9b90c5705786cf0c39356a94b19d842c954fdf16
tree24a7bcb5e03d19971aad573328da3fd88272dc81
parentd809df72b5a583f9fa6e0a722e4e7cb8b28b19fc
s390/atomic: Consistent layering between atomic.h and atomic_ops.h

With commit c8a91c285d8c ("s390/atomic: move remaining inline assemblies to
atomic_ops.h") all remaining atomic inline assemblies have been moved to
atomic_ops.h.

However the result is inconsistent: the functions in atomic_ops.h are
supposed to be used with integral types like int and long pointers, while
the functions in atomic.h work with atomic types.

This layering got violated with the named commit. Therefore adjust this
now, and also use consistent variable names in atomic_ops.h.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/atomic.h
arch/s390/include/asm/atomic_ops.h