From: Heiko Carstens Date: Thu, 1 Jul 2021 10:28:48 +0000 (+0200) Subject: s390/lib,string: fix strcat() inline asm constraint modifier X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a0ae5cd235cc32daa0aeb58fa466da2f1042fc8e;p=uclinux-h8%2Flinux.git s390/lib,string: fix strcat() inline asm constraint modifier "dummy" is not only used as output but also as input. Therefore use the correct "+" constraint modifier. Fixes: 8cf23c8e1fec ("s390/lib,string: get rid of register asm") Reported-by: Sven Schnelle Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/lib/string.c b/arch/s390/lib/string.c index ec5b76bde4d8..cfcdf76d6a95 100644 --- a/arch/s390/lib/string.c +++ b/arch/s390/lib/string.c @@ -162,7 +162,7 @@ char *strcat(char *dest, const char *src) " jo 0b\n" "1: mvst %[dummy],%[src]\n" " jo 1b\n" - : [dummy] "=&a" (dummy), [dest] "+&a" (dest), [src] "+&a" (src) + : [dummy] "+&a" (dummy), [dest] "+&a" (dest), [src] "+&a" (src) : : "cc", "memory", "0"); return ret;