Skip to contentSkip to conversation

maple_tree: Remove some unused functions

PATCH In review Jiapeng Chong 2 participants 2 messages Feb 17, 2023

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

PATCH 1/1 maple_tree: Remove some unused functions

These functions are defined in the maple_tree.c file, but not called elsewhere, so delete these unused functions.

lib/maple_tree.c:331:21: warning: unused function 'mte_set_full'.

---
 lib/maple_tree.c | 15 ---------------
 1 file changed, 15 deletions(-)
lib/maple_tree.c +0 -15
index 646297cae5d1..f89b61e37d93 100644
@@ -328,21 +328,6 @@ static inline void *mte_safe_root(const struct maple_enode *node)
 	return (void *)((unsigned long)node & ~MAPLE_ROOT_NODE);
 }
 
-static inline void *mte_set_full(const struct maple_enode *node)
-{
-	return (void *)((unsigned long)node & ~MAPLE_ENODE_NULL);
-}
-
-static inline void *mte_clear_full(const struct maple_enode *node)
-{
-	return (void *)((unsigned long)node | MAPLE_ENODE_NULL);
-}
-
-static inline bool mte_has_null(const struct maple_enode *node)
-{
-	return (unsigned long)node & MAPLE_ENODE_NULL;
-}
-
 static inline bool ma_is_root(struct maple_node *node)
 {
 	return ((unsigned long)node->parent & MA_ROOT_PARENT);
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw
Quoted 2 lines · Jiapeng Chong

These functions are defined in the maple_tree.c file, but not called elsewhere, so delete these unused functions.

These are for a feature that hasn't been implemented yet. They're static inline, so they cost nothing to keep around. NAK.