]> git.baikalelectronics.ru Git - kernel.git/commit
s390: make __load_psw_mask work with clang
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Apr 2019 21:26:22 +0000 (23:26 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 11 Apr 2019 11:36:52 +0000 (13:36 +0200)
commit049a5c771a7d1af1124c374142d60dff6d84ca5e
tree5e58fb6ee6ef023e73a2cdca808cd0ba910254b7
parentfb691b00d72fc9c09e927998c577038ad436c1e6
s390: make __load_psw_mask work with clang

clang fails to use the %O and %R inline assembly modifiers
the same way as gcc, leading to build failures with every use
of __load_psw_mask():

/tmp/nmi-4a9f80.s: Assembler messages:
/tmp/nmi-4a9f80.s:571: Error: junk at end of line: `+8(160(%r11))'
/tmp/nmi-4a9f80.s:626: Error: junk at end of line: `+8(160(%r11))'

Replace these with a more conventional way of passing the addresses
that should work with both clang and gcc.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/processor.h