[PATCH] xen/bitops: Remove unused get_bitmask_order()

Andrew Cooper posted 1 patch 3 weeks, 5 days ago
xen/include/xen/bitops.h | 8 --------
1 file changed, 8 deletions(-)
[PATCH] xen/bitops: Remove unused get_bitmask_order()
Posted by Andrew Cooper 3 weeks, 5 days ago
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 <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Julien Grall <julien@xen.org>
CC: Roger Pau Monné <roger@xenproject.org>
CC: Stefano Stabellini <sstabellini@kernel.org>
---
 xen/include/xen/bitops.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/xen/include/xen/bitops.h b/xen/include/xen/bitops.h
index 24882fb4822d..214613f4b41c 100644
--- a/xen/include/xen/bitops.h
+++ b/xen/include/xen/bitops.h
@@ -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;
-- 
2.39.5


Re: [PATCH] xen/bitops: Remove unused get_bitmask_order()
Posted by Jan Beulich 3 weeks, 5 days ago
On 28.10.2026 12:43, Andrew Cooper wrote:
> 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 <andrew.cooper3@citrix.com>

Acked-by: Jan Beulich <jbeulich@suse.com>