Skip to contentSkip to conversation

xen/bitops: Remove unused get_bitmask_order()

PATCH In review Andrew Cooper 2 participants 2 messages Oct 28

lore
Share & tools
lore
#0 lore raw

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.

---
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
index 24882fb4822d..214613f4b41c 100644
@@ -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