summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-12-13 15:24:03 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-12-14 18:33:41 +0300
commitd03502684b65492339d70f11aa8ed6df3961a3bf (patch)
treedc627d0fba0de12559fbe3c969ac32732985852a
parentf1c7ea26178176ca783cc2ac54f211630344290c (diff)
downloadlinux-d03502684b65492339d70f11aa8ed6df3961a3bf.tar.xz
s390/zcrypt: add missing memory clobber to ap_qci inline assembly
The ap_qci() inline assembly writes to memory (*config) but misses to tell the compiler about it. Add the missing memory clobber to fix this. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--drivers/s390/crypto/ap_asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/crypto/ap_asm.h b/drivers/s390/crypto/ap_asm.h
index 12fffdd1e8e8..7a630047c372 100644
--- a/drivers/s390/crypto/ap_asm.h
+++ b/drivers/s390/crypto/ap_asm.h
@@ -108,7 +108,7 @@ static inline int ap_qci(void *config)
EX_TABLE(0b, 1b)
: "+d" (reg0), "+d" (reg1), "+d" (reg2)
:
- : "cc");
+ : "cc", "memory");
return reg1;
}