Skip to contentSkip to conversation

maple_tree: Remove unused mas_is_root_limits()

PATCH Applied Zhan Xusheng 2 participants 2 messages Aug 5 – Aug 6

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 maple_tree: Remove unused mas_is_root_limits()

The last callers of mas_is_root_limits() were removed by commit b8852ef30c67 ("maple_tree: remove maple big node and subtree structs"), together with the maple subtree state (mast_*) code that used it. As a static inline it does not trigger -Wunused-function, so it went unnoticed.

Remove it. No functional change.

---
 lib/maple_tree.c | 5 -----
 1 file changed, 5 deletions(-)
lib/maple_tree.c +0 -5
index e52876435b77..1bed455bdb9b 100644
@@ -356,11 +356,6 @@ static __always_inline bool mte_is_root(const struct maple_enode *node)
 	return ma_is_root(mte_to_node(node));
 }
 
-static inline bool mas_is_root_limits(const struct ma_state *mas)
-{
-	return !mas->min && mas->max == ULONG_MAX;
-}
-
 static __always_inline bool mt_is_alloc(struct maple_tree *mt)
 {
 	return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE);
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Zhan Xusheng

The last callers of mas_is_root_limits() were removed by commit b8852ef30c67 ("maple_tree: remove maple big node and subtree structs"), together with the maple subtree state (mast_*) code that used it. As a static inline it does not trigger -Wunused-function, so it went unnoticed.

Remove it. No functional change.

Thanks.

Quoted 28 lines
---
 lib/maple_tree.c | 5 -----
 1 file changed, 5 deletions(-)
lib/maple_tree.c +0 -5
index e52876435b77..1bed455bdb9b 100644
@@ -356,11 +356,6 @@ static __always_inline bool mte_is_root(const struct maple_enode *node)
 	return ma_is_root(mte_to_node(node));
 }
 
-static inline bool mas_is_root_limits(const struct ma_state *mas)
-{
-	return !mas->min && mas->max == ULONG_MAX;
-}
-
 static __always_inline bool mt_is_alloc(struct maple_tree *mt)
 {
 	return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE);
Signature · 7 lines
2.43.0


-- 
maple-tree mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/maple-tree