From: Heiko Carstens Date: Tue, 13 Dec 2016 12:24:03 +0000 (+0100) Subject: s390/zcrypt: add missing memory clobber to ap_qci inline assembly X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d03502684b65492339d70f11aa8ed6df3961a3bf;p=linux.git 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 --- diff --git a/drivers/s390/crypto/ap_asm.h b/drivers/s390/crypto/ap_asm.h index 12fffdd1e8e88..7a630047c372a 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; }