[PATCH] virtio-net: Fix incorrect argument type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Amos Kong <kongjianjun@xxxxxxxxx>

drivers/net/virtio_net.c:213:52: warning: incorrect type in argument 2 (different signedness)
drivers/net/virtio_net.c:213:52:    expected unsigned int *len
drivers/net/virtio_net.c:213:52:    got int *<noident>
drivers/net/virtio_net.c:223:45: warning: incorrect type in argument 4 (different signedness)
drivers/net/virtio_net.c:223:45:    expected unsigned int *len
drivers/net/virtio_net.c:223:45:    got int *<noident>

Signed-off-by: Amos Kong <kongjianjun@xxxxxxxxx>
---
 drivers/net/virtio_net.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 82dba5a..f6df2e0 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -199,7 +199,8 @@ static int receive_mergeable(struct virtnet_info *vi, struct sk_buff *skb)
 {
 	struct skb_vnet_hdr *hdr = skb_vnet_hdr(skb);
 	struct page *page;
-	int num_buf, i, len;
+	int num_buf, i;
+	unsigned int len;
 
 	num_buf = hdr->mhdr.num_buffers;
 	while (--num_buf) {
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux