OSDN Git Service

block/qcow2: Don't use cpu_to_*w()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 16 Jun 2016 16:06:17 +0000 (17:06 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 5 Jul 2016 14:54:04 +0000 (16:54 +0200)
commitf1f7a1ddf38f4261058c604c32c488a0b7af9814
tree85b56569daeadaa1a924bb99263b4217b0e91fe3
parenta03ef88f77af045a2eb9629b5ce774a3fb973c5e
block/qcow2: Don't use cpu_to_*w()

Don't use the cpu_to_*w() functions, which we are trying to deprecate.
Instead either just use cpu_to_*() to do the byteswap, or use
st*_be_p() if we need to do the store somewhere other than to a
variable that's already the correct type.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1466093177-17890-1-git-send-email-peter.maydell@linaro.org
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c
block/qcow2-refcount.c
block/qcow2.c