libxc/bitops: correct comment for bitmap_size
PATCH 1/1 libxc/bitops: correct comment for bitmap_size
The returned value represents now units of bytes instead of longs.
Fixes commit 11d0044a16 ("tools/libxc: Modify bitmap operations to take void pointers")
Signed-off-by Olaf Hering <[email protected]>
--- tools/libxc/xc_bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xc_bitops.h +1 -1
@@ -13,7 +13,7 @@#define BITMAP_ENTRY (_nr,_bmap) ((_bmap))[(_nr) / 8]#define BITMAP_SHIFT (_nr) ((_nr) % 8) -/* calculate required space for number of longs needed to hold nr_bits */ +/* calculate required space for number of bytes needed to hold nr_bits */ static inline int bitmap_size (int nr_bits) {return (nr_bits +7 ) /8 ;
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines · Olaf Hering
The returned value represents now units of bytes instead of longs.
Fixes commit
11d0044a16("tools/libxc: Modify bitmap operations to take void pointers")Signed-off-by Olaf Hering <[email protected]>
Acked-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel