From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmxXq-0003c0-0L for qemu-devel@nongnu.org; Tue, 20 May 2014 23:50:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmxXh-0001LC-9t for qemu-devel@nongnu.org; Tue, 20 May 2014 23:50:21 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:58402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmxXg-0001Kh-GS for qemu-devel@nongnu.org; Tue, 20 May 2014 23:50:13 -0400 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 May 2014 13:50:06 +1000 From: Alexey Kardashevskiy Date: Wed, 21 May 2014 13:49:57 +1000 Message-Id: <1400644197-6179-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH] iscsi: Fix compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-trivial@nongnu.org, Peter Lieven , Paolo Bonzini 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 --- 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