Re: [PATCH] Maple Tree: Remove unused functions mte_set_full and mte_clear_full

From: Matthew Wilcox
Date: Wed Sep 14 2022 - 06:20:58 EST


On Wed, Sep 14, 2022 at 06:18:29PM +0800, Jiapeng Chong wrote:
> 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'.

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.