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.
Unified · Split
| @@ -356,11 +356,6 @@ static __always_inline bool mte_is_root(const struct maple_enode *node) · 355 unmodified lines | |||
| 356 | return ma_is_root(mte_to_node(node)); | 356 | return ma_is_root(mte_to_node(node)); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | static inline bool mas_is_root_limits(const struct ma_state *mas) | ||
| 360 | { | ||
| 361 | return !mas->min && mas->max == ULONG_MAX; | ||
| 362 | } | ||
| 363 | |||
| 364 | static __always_inline bool mt_is_alloc(struct maple_tree *mt) | 359 | static __always_inline bool mt_is_alloc(struct maple_tree *mt) |
| 365 | { | 360 | { |
| 366 | return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE); | 361 | return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE); |