]> git.karo-electronics.de Git - linux-beck.git/commitdiff
s390/zcrypt: add missing memory clobber to ap_qci inline assembly
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 13 Dec 2016 12:24:03 +0000 (13:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Dec 2016 15:33:41 +0000 (16:33 +0100)
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>
drivers/s390/crypto/ap_asm.h

index 12fffdd1e8e8827d778f94ef9a4fe6d57ca15b33..7a630047c372a3051a35d3db83af617e0a0075db 100644 (file)
@@ -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;
 }