summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2021-10-25 09:54:03 +0200
committerMichael S. Tsirkin <mst@redhat.com>2021-11-01 10:26:48 +0100
commitf0839372478ec53ff6d728422a6088f8a35b3a28 (patch)
tree4502635c074e066eccbfc19bf9090d3c9d2a5036 /drivers/virtio
parentvirtio_blk: allow 0 as num_request_queues (diff)
downloadlinux-f0839372478ec53ff6d728422a6088f8a35b3a28.tar.xz
linux-f0839372478ec53ff6d728422a6088f8a35b3a28.zip
virtio_blk: correct types for status handling
virtblk_setup_cmd returns blk_status_t in an int, callers then assign it back to a blk_status_t variable. blk_status_t is either u32 or (more typically) u8 so it works, but is inelegant and causes sparse warnings. Pass the status in blk_status_t in a consistent way. Reported-by: kernel test robot <lkp@intel.com> Fixes: b2c5221fd074 ("virtio-blk: avoid preallocating big SGL for data") Cc: Max Gurtovoy <mgurtovoy@nvidia.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions