|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xen/bitops: Remove unused get_bitmask_order()
commit 38a7320650f5e0d1efccc9367ca7399e38ebd7ee
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Wed Oct 28 11:29:32 2026 +0000
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Wed Nov 4 18:11:35 2026 +0000
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 <andrew.cooper3@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
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 24882fb482..214613f4b4 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;
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |