summary refs log tree commit diff stats
path: root/hw/display/virtio-gpu.c
diff options
context:
space:
mode:
authorHanna Reitz <hreitz@redhat.com>2021-10-26 11:07:45 +0200
committerKevin Wolf <kwolf@redhat.com>2021-11-02 13:22:09 +0100
commit73d4a11300ee87e04f93fab4380b80379e792a06 (patch)
tree3fa3e5fbeeaa0f1d91c9e68e2376ad4d61aa4a60 /hw/display/virtio-gpu.c
parent68d7946648a5c364a4df187804d37f09a318b50f (diff)
downloadfocaccia-qemu-73d4a11300ee87e04f93fab4380b80379e792a06.tar.gz
focaccia-qemu-73d4a11300ee87e04f93fab4380b80379e792a06.zip
block-backend: Silence clang -m32 compiler warning
Similarly to e7e588d432d31ecebc26358e47201dd108db964c, there is a
warning in block/block-backend.c that qiov->size <= INT64_MAX is always
true on machines where size_t is narrower than a uint64_t.  In said
commit, we silenced this warning by casting to uint64_t.

The commit introducing this warning here
(a93d81c84afa717b0a1a6947524d8d1fbfd6bbf5) anticipated it and so tried
to address it the same way.  However, it only did so in one of two
places where this comparison occurs, and so we still need to fix up the
other one.

Fixes: a93d81c84afa717b0a1a6947524d8d1fbfd6bbf5
       ("block-backend: convert blk_aio_ functions to int64_t bytes
       paramter")
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20211026090745.30800-1-hreitz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/display/virtio-gpu.c')
0 files changed, 0 insertions, 0 deletions