Re: [PATCH] xen/bitmap: Deduplicate __bitmap_weight() implementations

2024-02-05 Thread Jan Beulich
On 02.02.2024 16:38, Andrew Cooper wrote: > We have two copies of __bitmap_weight() that differ by whether they make > hweight32() or hweight64() calls, yet we already have hweight_long() which is > the form that __bitmap_weight() wants. > > Fix hweight_long() to return unsigned int like all the

[PATCH] xen/bitmap: Deduplicate __bitmap_weight() implementations

2024-02-02 Thread Andrew Cooper
We have two copies of __bitmap_weight() that differ by whether they make hweight32() or hweight64() calls, yet we already have hweight_long() which is the form that __bitmap_weight() wants. Fix hweight_long() to return unsigned int like all the other hweight helpers, and fix __bitmap_weight() to