From: Heiko Carstens Date: Tue, 13 Dec 2016 11:51:19 +0000 (+0100) Subject: s390/extmem: add missing memory clobber to dcss_set_subcodes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1c7ea26178176ca783cc2ac54f211630344290c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git s390/extmem: add missing memory clobber to dcss_set_subcodes 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 Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/mm/extmem.c b/arch/s390/mm/extmem.c index 02042b6b66bf..362237203144 100644 --- a/arch/s390/mm/extmem.c +++ b/arch/s390/mm/extmem.c @@ -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 */