mbox series

[0/2] bitmap: some fixes

Message ID 1532934837-5966-1-git-send-email-wei.w.wang@intel.com (mailing list archive)
Headers show
Series bitmap: some fixes | expand

Message

Wang, Wei W July 30, 2018, 7:13 a.m. UTC
"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(-)