]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/xor: Fix xor_xc_2() inline assembly constraints
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 2 Mar 2026 13:34:58 +0000 (14:34 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 3 Mar 2026 15:42:14 +0000 (16:42 +0100)
commitf775276edc0c505dc0f782773796c189f31a1123
tree73abb0fbb4cba87b85800058b4b783dc804e0345
parent5f25805303e201f3afaff0a90f7c7ce257468704
s390/xor: Fix xor_xc_2() inline assembly constraints

The inline assembly constraints for xor_xc_2() are incorrect. "bytes",
"p1", and "p2" are input operands, while all three of them are modified
within the inline assembly. Given that the function consists only of this
inline assembly it seems unlikely that this may cause any problems, however
fix this in any case.

Fixes: 2cfc5f9ce7f5 ("s390/xor: optimized xor routing using the XC instruction")
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Link: https://lore.kernel.org/r/20260302133500.1560531-2-hca@linux.ibm.com
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/lib/xor.c