summaryrefslogtreecommitdiff
path: root/drivers/block/virtio_blk.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2022-12-20 07:37:49 -0500
committerMichael S. Tsirkin <mst@redhat.com>2023-02-15 06:46:22 -0500
commit2a9c844e896b2895cde9fc0276f6243c68d82e70 (patch)
tree81fb125b2b711dc4545674bb983c8c9fde95c3ed /drivers/block/virtio_blk.c
parent04e5421e6f61538f510aae9329e77d010159863f (diff)
virtio_blk: zone append in header type tweak
virtio blk returns a 64 bit append_sector in an input buffer, in LE format. This field is not tagged as LE correctly, so even though the generated code is ok, we get warnings from sparse: drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 Make sparse happy by using the correct type. Message-Id: <20221220125154.564265-1-mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/block/virtio_blk.c')
-rw-r--r--drivers/block/virtio_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index abc6db9e15b7..386d7c1ca021 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -103,7 +103,7 @@ struct virtblk_req {
struct {
u8 status;
u8 reserved[7];
- u64 append_sector;
+ __le64 append_sector;
} zone_append_in_hdr;
};