]> git.baikalelectronics.ru Git - kernel.git/commit
s390/bitops: remove small optimization to fix clang build
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 15 Jan 2021 19:01:36 +0000 (20:01 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 19 Jan 2021 11:29:26 +0000 (12:29 +0100)
commitc771ba2df1aa952f05d24e3dfb3c190bc5d6bff9
treefcebce4d43e0d01827f5a0c531f9fce5f8e5b907
parentef5c0db1f825e49365c6c81baad10c028e3df845
s390/bitops: remove small optimization to fix clang build

clang does not know about the 'b1' construct used in bitops inline
assembly. Since the plan is to use compiler atomic builtins anyway
there is no point in requesting clang support for this. Especially if
one considers that the kernel seems to be the only user of this.

With removing this small optimization it is possible to compile the
kernel also with -march=zEC12 and higher using clang.

Build error:

In file included from ./include/linux/bitops.h:32:
./arch/s390/include/asm/bitops.h:69:4: error: invalid operand in inline asm: 'oi        $0,${1:b}'
                        "oi     %0,%b1\n"
                        ^

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