]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/cio/ioasm: Fix __xsch() condition code handling
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 25 Sep 2025 08:45:17 +0000 (10:45 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 29 Sep 2025 11:52:08 +0000 (13:52 +0200)
commitf0edc8f113a39d1c9f8cf83e865c32b0668d80e0
treeba0ee12e70c47836419c182df03c74053c373544
parentfa7a0a53eeb7e16402f82c3d5a9ef4bf5efe9357
s390/cio/ioasm: Fix __xsch() condition code handling

For the __xsch() inline assembly the conversion to flag output macros is
incomplete. Only the conditional shift of the return value was added, while
the required changes to the inline assembly itself are missing.

If compiled with GCC versions before 14.2 this leads to a double shift of
the cc output operand and therefore the returned value of __xsch() is
incorrectly always zero, instead of the expected condition code.

Fixes: e200565d434b ("s390/cio/ioasm: Convert to use flag output macros")
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/cio/ioasm.c