[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 1/9] virtio-9p: add parentheses to sizeof operato
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [PATCH v4 1/9] virtio-9p: add parentheses to sizeof operator |
Date: |
Fri, 30 Sep 2016 17:12:41 +0200 |
User-agent: |
StGit/0.17.1-dirty |
Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
---
hw/9pfs/virtio-9p-device.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c
index 009b43f6d045..e7ea0e45f3dd 100644
--- a/hw/9pfs/virtio-9p-device.c
+++ b/hw/9pfs/virtio-9p-device.c
@@ -57,12 +57,12 @@ static void handle_9p_output(VirtIODevice *vdev, VirtQueue
*vq)
}
BUG_ON(elem->out_num == 0 || elem->in_num == 0);
- QEMU_BUILD_BUG_ON(sizeof out != 7);
+ QEMU_BUILD_BUG_ON(sizeof(out) != 7);
v->elems[pdu->idx] = elem;
len = iov_to_buf(elem->out_sg, elem->out_num, 0,
- &out, sizeof out);
- BUG_ON(len != sizeof out);
+ &out, sizeof(out));
+ BUG_ON(len != sizeof(out));
pdu->size = le32_to_cpu(out.size_le);
- [Qemu-devel] [PATCH v4 0/9] virtio: avoid inappropriate QEMU termination in device code, Greg Kurz, 2016/09/30
- [Qemu-devel] [PATCH v4 1/9] virtio-9p: add parentheses to sizeof operator,
Greg Kurz <=
- [Qemu-devel] [PATCH v4 2/9] virtio-blk: make some functions static, Greg Kurz, 2016/09/30
- [Qemu-devel] [PATCH v4 3/9] virtio-9p: handle handle_9p_output() error, Greg Kurz, 2016/09/30
- [Qemu-devel] [PATCH v4 4/9] virtio-blk: handle virtio_blk_handle_request() errors, Greg Kurz, 2016/09/30
- [Qemu-devel] [PATCH v4 5/9] virtio-net: handle virtio_net_handle_ctrl() error, Greg Kurz, 2016/09/30
- [Qemu-devel] [PATCH v4 6/9] virtio-net: handle virtio_net_receive() errors, Greg Kurz, 2016/09/30
- [Qemu-devel] [PATCH v4 7/9] virtio-net: handle virtio_net_flush_tx() errors, Greg Kurz, 2016/09/30
- [Qemu-devel] [PATCH v4 8/9] virtio-scsi: convert virtio_scsi_bad_req() to use virtio_error(), Greg Kurz, 2016/09/30
- [Qemu-devel] [PATCH v4 9/9] virtio-scsi: handle virtio_scsi_set_config() error, Greg Kurz, 2016/09/30
- Re: [Qemu-devel] [PATCH v4 0/9] virtio: avoid inappropriate QEMU termination in device code, no-reply, 2016/09/30