xen/bitops: Remove unused get_bitmask_order()
PATCH 1/1 xen/bitops: Remove unused get_bitmask_order()
This is a wrapper around fls() with an incorrect comment about the output range of the function. It's also unused, so remove it.
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
--- xen/include/xen/bitops.h | 8 -------- 1 file changed, 8 deletions(-)
xen/include/xen/bitops.h +0 -8
@@ -389,14 +389,6 @@ extern unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size);#endif -static inline int get_bitmask_order (unsigned int count) -{ -int order; - - order =fls (count); -return order;/* We could be slightly more clever with -1 here... */ -} -static inline int get_count_order (unsigned int count) {int order;
Signature · 1 line
2.39.5
Quoted 4 lines · Andrew Cooper
This is a wrapper around
fls()with an incorrect comment about the output range of the function. It's also unused, so remove it.Signed-off-by Andrew Cooper <[email protected]>
Acked-by Jan Beulich <[email protected]>