Skip to content

Commit f07a788

Browse files
committed
s390/pai: Convert to use flag output macros
Use flag output macros in inline asm to allow for better code generation if the compiler has support for the flag output constraint. Reviewed-by: Juergen Christ <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 9ce8bc0 commit f07a788

File tree

1 file changed

+5
-5
lines changed
  • arch/s390/include/asm

1 file changed

+5
-5
lines changed

arch/s390/include/asm/pai.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/jump_label.h>
1212
#include <asm/lowcore.h>
1313
#include <asm/ptrace.h>
14+
#include <asm/asm.h>
1415

1516
struct qpaci_info_block {
1617
u64 header;
@@ -33,12 +34,11 @@ static inline int qpaci(struct qpaci_info_block *info)
3334
" lgr 0,%[size]\n"
3435
" .insn s,0xb28f0000,%[info]\n"
3536
" lgr %[size],0\n"
36-
" ipm %[cc]\n"
37-
" srl %[cc],28\n"
38-
: [cc] "=d" (cc), [info] "=Q" (*info), [size] "+&d" (size)
37+
CC_IPM(cc)
38+
: CC_OUT(cc, cc), [info] "=Q" (*info), [size] "+&d" (size)
3939
:
40-
: "0", "cc", "memory");
41-
return cc ? (size + 1) * sizeof(u64) : 0;
40+
: CC_CLOBBER_LIST("0", "memory"));
41+
return CC_TRANSFORM(cc) ? (size + 1) * sizeof(u64) : 0;
4242
}
4343

4444
#define PAI_CRYPTO_BASE 0x1000 /* First event number */

0 commit comments

Comments
 (0)