From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuHj4-0004jp-6w for qemu-devel@nongnu.org; Tue, 10 Jun 2014 04:48:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuHix-0006cY-VN for qemu-devel@nongnu.org; Tue, 10 Jun 2014 04:48:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuHix-0006cS-Nu for qemu-devel@nongnu.org; Tue, 10 Jun 2014 04:48:07 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5A8m7Ou012639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 10 Jun 2014 04:48:07 -0400 From: Stefan Hajnoczi Date: Tue, 10 Jun 2014 09:29:51 +0200 Message-Id: <1402385392-15035-3-git-send-email-stefanha@redhat.com> In-Reply-To: <1402385392-15035-1-git-send-email-stefanha@redhat.com> References: <1402385392-15035-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] block: make bdrv_query_stats() static List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , Fam Zheng , Stefan Hajnoczi , Max Reitz This function is only called from block/qapi.c. There is no need to keep it public. Signed-off-by: Stefan Hajnoczi --- block/qapi.c | 2 +- include/block/qapi.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/block/qapi.c b/block/qapi.c index 97e1641..aeabaaf 100644 --- a/block/qapi.c +++ b/block/qapi.c @@ -293,7 +293,7 @@ void bdrv_query_info(BlockDriverState *bs, qapi_free_BlockInfo(info); } -BlockStats *bdrv_query_stats(const BlockDriverState *bs) +static BlockStats *bdrv_query_stats(const BlockDriverState *bs) { BlockStats *s; diff --git a/include/block/qapi.h b/include/block/qapi.h index e92c00d..0374546 100644 --- a/include/block/qapi.h +++ b/include/block/qapi.h @@ -39,7 +39,6 @@ void bdrv_query_image_info(BlockDriverState *bs, void bdrv_query_info(BlockDriverState *bs, BlockInfo **p_info, Error **errp); -BlockStats *bdrv_query_stats(const BlockDriverState *bs); void bdrv_snapshot_dump(fprintf_function func_fprintf, void *f, QEMUSnapshotInfo *sn); -- 1.9.3