From d03502684b65492339d70f11aa8ed6df3961a3bf Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Tue, 13 Dec 2016 13:24:03 +0100 Subject: [PATCH] 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 Signed-off-by: Martin Schwidefsky --- drivers/s390/crypto/ap_asm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- GitLab