]> git.baikalelectronics.ru Git - kernel.git/commit
s390/atomic: remove small optimization to fix clang build
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 15 Jan 2021 18:39:23 +0000 (19:39 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 19 Jan 2021 11:29:26 +0000 (12:29 +0100)
commitef5c0db1f825e49365c6c81baad10c028e3df845
tree2c960669ca0288ccac37269b3f31f8d8c7808e7c
parentee840b046d6052c105ba6531dd4e2dfef11766f5
s390/atomic: remove small optimization to fix clang build

With commit 162c696ff415 ("s390/atomic: circumvent gcc 10 build
regression") there was an attempt to workaroud a gcc build bug,
however with the workaround a similar problem with clang appeared.
It was recommended to use a workaround which would fail again with
gcc. Therefore simply remove the optimization. It is just not worth
the effort.

Besides that all of this will be changed to use compiler atomic
builtins instead anyway.

See https://reviews.llvm.org/D90231
and https://reviews.llvm.org/D91786

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/atomic.h