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