]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
s390/dasd: use register pair instead of register asm
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 21 Jun 2021 20:19:28 +0000 (22:19 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 28 Jun 2021 09:18:29 +0000 (11:18 +0200)
commitd4a01902eb59e478ab7c7d36d7bb90d94a315f89
tree3522caed4614aca6f4ea5ff019f683ab9c5567ff
parentd3e2ff5436d6ee38b572ba5c01dc7994769bec54
s390/dasd: use register pair instead of register asm

Using register asm statements has been proven to be very error prone,
especially when using code instrumentation where gcc may add function
calls, which clobbers register contents in an unexpected way.

Therefore get rid of register asm statement in dasd code, even though
there is currently nothing wrong with it. This way we know for sure
that the above mentioned bug class won't be introduced here.

Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/block/dasd_diag.c