aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2020-02-05 14:20:34 +0300
committerJohn Snow <jsnow@redhat.com>2020-03-18 14:03:46 -0400
commit30b8346cc3e1e9d73d55bb442e2b4a670dccd444 (patch)
treed57b33486e6ef211ca187edb317026682ac159c0
parentbe24c7140cf9212de2a00b855939d049d7cb7554 (diff)
downloadqemu-30b8346cc3e1e9d73d55bb442e2b4a670dccd444.zip
qemu-30b8346cc3e1e9d73d55bb442e2b4a670dccd444.tar.gz
qemu-30b8346cc3e1e9d73d55bb442e2b4a670dccd444.tar.bz2
hbitmap: unpublish hbitmap_iter_skip_words
Function is internal and even commented as internal. Drop its definition from .h file. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20200205112041.6003-4-vsementsov@virtuozzo.com Signed-off-by: John Snow <jsnow@redhat.com>
-rw-r--r--include/qemu/hbitmap.h7
-rw-r--r--util/hbitmap.c2
2 files changed, 1 insertions, 8 deletions
diff --git a/include/qemu/hbitmap.h b/include/qemu/hbitmap.h
index ab227b1..15837a0 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 a368dc5..26145d4 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;