From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: qemu-devel@nongnu.org
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
qemu-trivial@nongnu.org, Peter Lieven <pl@kamp.de>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: [Qemu-devel] [PATCH] iscsi: Fix compile error
Date: Wed, 21 May 2014 13:49:57 +1000 [thread overview]
Message-ID: <1400644197-6179-1-git-send-email-aik@ozlabs.ru> (raw)
This fixes compile error when LIBISCSI_FEATURE_IOVECTOR is not defined:
block/iscsi.c|384 col 13| error: 'iscsi_allocationmap_is_allocated' defined but not used [-Werror=unused-f unction]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
block/iscsi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/block/iscsi.c b/block/iscsi.c
index d649424..5b3f459 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -380,6 +380,7 @@ retry:
return 0;
}
+#if defined(LIBISCSI_FEATURE_IOVECTOR)
static bool iscsi_allocationmap_is_allocated(IscsiLun *iscsilun,
int64_t sector_num, int nb_sectors)
@@ -393,9 +394,6 @@ static bool iscsi_allocationmap_is_allocated(IscsiLun *iscsilun,
sector_num / iscsilun->cluster_sectors) == size);
}
-
-#if defined(LIBISCSI_FEATURE_IOVECTOR)
-
static int64_t coroutine_fn iscsi_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum)
--
1.9.rc0
next reply other threads:[~2014-05-21 3:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-21 3:49 Alexey Kardashevskiy [this message]
2014-05-21 3:53 ` [Qemu-devel] [PATCH] iscsi: Fix compile error Alexey Kardashevskiy
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=1400644197-6179-1-git-send-email-aik@ozlabs.ru \
--to=aik@ozlabs.ru \
--cc=pbonzini@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).