aboutsummaryrefslogtreecommitdiff
path: root/lib/libvirtio/virtio-blk.c
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2016-02-01 11:17:51 +0530
committerAlexey Kardashevskiy <aik@ozlabs.ru>2016-02-08 16:40:38 +1100
commitc8d2f276e7699214d40e5f78c55ba91727a3b61f (patch)
tree6db5d5681c26c1117ce190a0561c2e0128800310 /lib/libvirtio/virtio-blk.c
parent2bba017e123ed3c316ceb07e4bcce85e5f1ef50c (diff)
downloadSLOF-c8d2f276e7699214d40e5f78c55ba91727a3b61f.zip
SLOF-c8d2f276e7699214d40e5f78c55ba91727a3b61f.tar.gz
SLOF-c8d2f276e7699214d40e5f78c55ba91727a3b61f.tar.bz2
virtio-blk: fix gcc warnings (-Wextra)
Change the prototype of virtioblk_read as blocknum wont be negative Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libvirtio/virtio-blk.c')
-rw-r--r--lib/libvirtio/virtio-blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvirtio/virtio-blk.c b/lib/libvirtio/virtio-blk.c
index 826f2ea..6eb4a64 100644
--- a/lib/libvirtio/virtio-blk.c
+++ b/lib/libvirtio/virtio-blk.c
@@ -87,7 +87,7 @@ virtioblk_shutdown(struct virtio_device *dev)
* @return number of blocks that have been read successfully
*/
int
-virtioblk_read(struct virtio_device *dev, char *buf, long blocknum, long cnt)
+virtioblk_read(struct virtio_device *dev, char *buf, uint64_t blocknum, long cnt)
{
struct vring_desc *desc;
int id;