[SLOF] [PATCH v4 01/23] virtio-blk: fix gcc warnings (-Wextra)
Nikunj A Dadhania
nikunj at linux.vnet.ibm.com
Thu Jan 28 21:24:02 AEDT 2016
Change variable type of capacity
Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
---
lib/libvirtio/virtio-blk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libvirtio/virtio-blk.c b/lib/libvirtio/virtio-blk.c
index 826f2ea..1e01c14 100644
--- a/lib/libvirtio/virtio-blk.c
+++ b/lib/libvirtio/virtio-blk.c
@@ -93,7 +93,7 @@ virtioblk_read(struct virtio_device *dev, char *buf, long blocknum, long cnt)
int id;
static struct virtio_blk_req blkhdr;
//struct virtio_blk_config *blkconf;
- uint64_t capacity;
+ long capacity;
uint32_t vq_size, time;
struct vring_desc *vq_desc; /* Descriptor vring */
struct vring_avail *vq_avail; /* "Available" vring */
--
2.5.0
More information about the SLOF
mailing list