mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
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: 8cf23c8e1f
("s390/lib,string: get rid of register asm")
Reported-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
a029a4eab3
commit
a0ae5cd235
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user