[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] block: make bdrv_query_stats() static
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH 1/6] block: make bdrv_query_stats() static |
Date: |
Tue, 17 Jun 2014 11:44:56 +0800 |
From: Stefan Hajnoczi <address@hidden>
This function is only called from block/qapi.c. There is no need to
keep it public.
Signed-off-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Fam Zheng <address@hidden>
---
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);
--
2.0.0
- [Qemu-devel] [PATCH 0/6] virtio-blk: Unify request handling of dataplane, Fam Zheng, 2014/06/16
- [Qemu-devel] [PATCH 1/6] block: make bdrv_query_stats() static,
Fam Zheng <=
- [Qemu-devel] [PATCH 2/6] block: acquire AioContext in qmp_query_blockstats(), Fam Zheng, 2014/06/16
- [Qemu-devel] [PATCH 3/6] virtio-blk: Make request completion function virtual, Fam Zheng, 2014/06/16
- [Qemu-devel] [PATCH 4/6] virtio-blk: Export request handling functions to dataplane, Fam Zheng, 2014/06/16
- [Qemu-devel] [PATCH 5/6] virtio-blk: Unify {non-, }dataplane's request handlings, Fam Zheng, 2014/06/16
- [Qemu-devel] [PATCH 6/6] virtio-blk: Rename complete_request_early to complete_request_vring, Fam Zheng, 2014/06/16
- Re: [Qemu-devel] [PATCH 0/6] virtio-blk: Unify request handling of dataplane, Paolo Bonzini, 2014/06/17