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)
commit6110ccecd3c0c025ab7d5224a5feba5a664e084e
tree2c960669ca0288ccac37269b3f31f8d8c7808e7c
parent4520a91a976e3f5e74d3d27ccc66a7a669826373
s390/atomic: remove small optimization to fix clang build

With commit f0cbd3b83ed4 ("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