[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/5] virtio: Fix compiler warning for non Linux host
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 1/5] virtio: Fix compiler warning for non Linux hosts |
Date: |
Wed, 30 May 2012 15:37:12 +0200 |
From: Stefan Weil <address@hidden>
The local variables ret, i are only used if __linux__ is defined.
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
hw/virtio-blk.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index f9e1896..60750cb 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.c
@@ -147,9 +147,11 @@ static VirtIOBlockReq *virtio_blk_get_request(VirtIOBlock
*s)
static void virtio_blk_handle_scsi(VirtIOBlockReq *req)
{
+#ifdef __linux__
int ret;
- int status = VIRTIO_BLK_S_OK;
int i;
+#endif
+ int status = VIRTIO_BLK_S_OK;
/*
* We require at least one output segment each for the virtio_blk_outhdr
--
1.7.6.5
- [Qemu-devel] [PATCH 1/5] sheepdog: switch to writethrough mode if cluster doesn't support flush, (continued)
- [Qemu-devel] [PATCH 1/5] sheepdog: switch to writethrough mode if cluster doesn't support flush, Kevin Wolf, 2012/05/07
- [Qemu-devel] [PATCH 2/5] qcow2: Limit COW to where it's needed, Kevin Wolf, 2012/05/07
- [Qemu-devel] [PATCH 3/5] block: make bdrv_create adopt coroutine, Kevin Wolf, 2012/05/07
- [Qemu-devel] [PATCH 4/5] qcow2: lock on prealloc, Kevin Wolf, 2012/05/07
- [Qemu-devel] [PATCH 5/5] fdc: simplify media change handling, Kevin Wolf, 2012/05/07
- Re: [Qemu-devel] [PULL 0/5] Block patches for 1.1, Anthony Liguori, 2012/05/08
- [Qemu-devel] [PULL 0/5] Block patches for 1.1, Kevin Wolf, 2012/05/30
- [Qemu-devel] [PATCH 2/5] sheepdog: fix return value of do_load_save_vm_state, Kevin Wolf, 2012/05/30
- [Qemu-devel] [PATCH 3/5] block: prevent snapshot mode $TMPDIR symlink attack, Kevin Wolf, 2012/05/30
- [Qemu-devel] [PATCH 5/5] ahci: SATA FIS is 20 bytes, not 0x20, Kevin Wolf, 2012/05/30
- [Qemu-devel] [PATCH 1/5] virtio: Fix compiler warning for non Linux hosts,
Kevin Wolf <=
- [Qemu-devel] [PATCH 4/5] virtio-blk: Fix geometry sector calculation, Kevin Wolf, 2012/05/30
- Re: [Qemu-devel] [PULL 0/5] Block patches for 1.1, Anthony Liguori, 2012/05/30