From: Amit Shah <amit.shah@redhat.com>
To: qemu list <qemu-devel@nongnu.org>
Cc: Amit Shah <amit.shah@redhat.com>,
Anthony Liguori <anthony@codemonkey.ws>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: [Qemu-devel] [PATCH RESEND 1/3] virtio: use unsigned int for counting bytes in vq
Date: Tue, 25 Sep 2012 00:05:14 +0530 [thread overview]
Message-ID: <62a944963063329ffcff01df8ac770f5874e0d1f.1348511596.git.amit.shah@redhat.com> (raw)
In-Reply-To: <cover.1348511596.git.amit.shah@redhat.com>
In-Reply-To: <cover.1348511596.git.amit.shah@redhat.com>
The virtqueue_avail_bytes() function counts bytes in an int. Use an
unsigned int instead.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
hw/virtio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/virtio.c b/hw/virtio.c
index 209c763..4c9e20a3 100644
--- a/hw/virtio.c
+++ b/hw/virtio.c
@@ -338,7 +338,7 @@ static unsigned virtqueue_next_desc(target_phys_addr_t desc_pa,
int virtqueue_avail_bytes(VirtQueue *vq, int in_bytes, int out_bytes)
{
unsigned int idx;
- int total_bufs, in_total, out_total;
+ unsigned int total_bufs, in_total, out_total;
idx = vq->last_avail_idx;
--
1.7.7.6
next prev parent reply other threads:[~2012-09-24 18:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-24 18:35 [Qemu-devel] [PATCH RESEND 0/3] Introduce virtqueue_get_avail_bytes() Amit Shah
2012-09-24 18:35 ` Amit Shah [this message]
2012-09-24 18:35 ` [Qemu-devel] [PATCH RESEND 2/3] virtio: " Amit Shah
2012-09-24 18:35 ` [Qemu-devel] [PATCH RESEND 3/3] virtio-serial-bus: let chardev know the exact number of bytes requested Amit Shah
2012-09-28 10:00 ` [Qemu-devel] [PATCH RESEND 0/3] Introduce virtqueue_get_avail_bytes() Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62a944963063329ffcff01df8ac770f5874e0d1f.1348511596.git.amit.shah@redhat.com \
--to=amit.shah@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).