]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
s390/extmem: add missing memory clobber to dcss_set_subcodes
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 13 Dec 2016 11:51:19 +0000 (12:51 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Dec 2016 15:33:41 +0000 (16:33 +0100)
Add the missing memory clobber / barrier to dcss_set_subcodes() to
tell the compiler that the inline assembly accesses memory (name
string).

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/extmem.c

index 02042b6b66bfa52f2f1039aa017d85dcd0964c26..362237203144d146c0dfa7379bf76ecba6fc51d7 100644 (file)
@@ -122,7 +122,7 @@ dcss_set_subcodes(void)
                "1:     la      %2,3\n"
                "2:\n"
                EX_TABLE(0b, 1b)
-               : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc");
+               : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc", "memory");
 
        kfree(name);
        /* Diag x'64' new subcodes are supported, set to new subcodes */