[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 04/11] hbitmap: unpublish hbitmap_iter_skip_words
From: |
John Snow |
Subject: |
[PULL v2 04/11] hbitmap: unpublish hbitmap_iter_skip_words |
Date: |
Wed, 18 Mar 2020 16:23:34 -0400 |
From: Vladimir Sementsov-Ogievskiy <address@hidden>
Function is internal and even commented as internal. Drop its
definition from .h file.
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
Reviewed-by: John Snow <address@hidden>
Message-id: address@hidden
Signed-off-by: John Snow <address@hidden>
---
include/qemu/hbitmap.h | 7 -------
util/hbitmap.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/include/qemu/hbitmap.h b/include/qemu/hbitmap.h
index ab227b117f..15837a0e2d 100644
--- a/include/qemu/hbitmap.h
+++ b/include/qemu/hbitmap.h
@@ -297,13 +297,6 @@ void hbitmap_free(HBitmap *hb);
*/
void hbitmap_iter_init(HBitmapIter *hbi, const HBitmap *hb, uint64_t first);
-/* hbitmap_iter_skip_words:
- * @hbi: HBitmapIter to operate on.
- *
- * Internal function used by hbitmap_iter_next and hbitmap_iter_next_word.
- */
-unsigned long hbitmap_iter_skip_words(HBitmapIter *hbi);
-
/* hbitmap_next_zero:
*
* Find next not dirty bit within selected range. If not found, return -1.
diff --git a/util/hbitmap.c b/util/hbitmap.c
index a368dc5ef7..26145d4b9e 100644
--- a/util/hbitmap.c
+++ b/util/hbitmap.c
@@ -104,7 +104,7 @@ struct HBitmap {
/* Advance hbi to the next nonzero word and return it. hbi->pos
* is updated. Returns zero if we reach the end of the bitmap.
*/
-unsigned long hbitmap_iter_skip_words(HBitmapIter *hbi)
+static unsigned long hbitmap_iter_skip_words(HBitmapIter *hbi)
{
size_t pos = hbi->pos;
const HBitmap *hb = hbi->hb;
--
2.21.1
- [PULL v2 00/11] Bitmaps patches, John Snow, 2020/03/18
- [PULL v2 01/11] build: Silence clang warning on older glib autoptr usage, John Snow, 2020/03/18
- [PULL v2 02/11] hbitmap: assert that we don't create bitmap larger than INT64_MAX, John Snow, 2020/03/18
- [PULL v2 03/11] hbitmap: move hbitmap_iter_next_word to hbitmap.c, John Snow, 2020/03/18
- [PULL v2 04/11] hbitmap: unpublish hbitmap_iter_skip_words,
John Snow <=
- [PULL v2 11/11] block/qcow2-bitmap: use bdrv_dirty_bitmap_next_dirty, John Snow, 2020/03/18
- [PULL v2 06/11] block/dirty-bitmap: switch _next_dirty_area and _next_zero to int64_t, John Snow, 2020/03/18
- [PULL v2 10/11] nbd/server: use bdrv_dirty_bitmap_next_dirty_area, John Snow, 2020/03/18
- [PULL v2 09/11] nbd/server: introduce NBDExtentArray, John Snow, 2020/03/18
- [PULL v2 07/11] block/dirty-bitmap: add _next_dirty API, John Snow, 2020/03/18
- [PULL v2 08/11] block/dirty-bitmap: improve _next_dirty_area API, John Snow, 2020/03/18
- [PULL v2 05/11] hbitmap: drop meta bitmaps as they are unused, John Snow, 2020/03/18
- Re: [PULL v2 00/11] Bitmaps patches, Peter Maydell, 2020/03/19