Maple Tree: Remove unused functions mte_set_full and mte_clear_full
Subsystems (3)
PATCH 1/1 Maple Tree: Remove unused functions mte_set_full and mte_clear_full
mte_set_full and mte_clear_full are defined in the maple_tree.c file, but not called elsewhere, so delete these unused function.
lib/maple_tree.c:330:20: warning: unused function 'mte_set_full'. lib/maple_tree.c:335:20: warning: unused function 'mte_clear_full'.
--- lib/maple_tree.c | 10 ---------- 1 file changed, 10 deletions(-)
lib/maple_tree.c +0 -10
@@ -327,16 +327,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) -{ - node = (void *)((unsigned long )node & ~MAPLE_ENODE_NULL ); -} - -static inline void mte_clear_full (const struct maple_enode *node) -{ - node = (void *)((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
Quoted 5 lines · Jiapeng Chong
mte_set_fullandmte_clear_fullare defined in themaple_tree.cfile, but not called elsewhere, so delete these unused function.
lib/maple_tree.c:330:20: warning: unused function 'mte_set_full'.lib/maple_tree.c:335:20: warning: unused function 'mte_clear_full'.
They're not used now, but they will be in a release or two. They're static inline functions; keeping them as part of the orthogonal API costs nothing when they're not used.