"nbits = 0" is not applicable to BITMAP_LAST_WORD_MASK, callers should avoid that. Fix bitmap_count_one to avoid passing 0 to the macro.
Wei Wang (2): bitmap.h: add comments to BITMAP_LAST_WORD_MASK bitmap: fix bitmap_count_one include/qemu/bitmap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4