lib/maple_tree.c:336:20: error: unused function 'mte_has_null'

From: kernel test robot
Date: Fri Apr 26 2024 - 10:27:38 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c942a0cd3603e34dd2d7237e064d9318cb7f9654
commit: 6e7ba8b5e2380f941dda8a1025d70c5ce5b38982 maple_tree: mte_set_full() and mte_clear_full() clang-analyzer clean up
date: 1 year, 5 months ago
config: x86_64-sof-customedconfig-amd-defconfig (https://download.01.org/0day-ci/archive/20240426/202404262254.lEmMOMMd-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.4 (https://github.com/llvm/llvm-project e6c3289804a67ea0bb6a86fadbe454dd93b8d855)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240426/202404262254.lEmMOMMd-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404262254.lEmMOMMd-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

lib/maple_tree.c:326:21: error: unused function 'mte_set_full' [-Werror,-Wunused-function]
326 | static inline void *mte_set_full(const struct maple_enode *node)
| ^~~~~~~~~~~~
lib/maple_tree.c:331:21: error: unused function 'mte_clear_full' [-Werror,-Wunused-function]
331 | static inline void *mte_clear_full(const struct maple_enode *node)
| ^~~~~~~~~~~~~~
>> lib/maple_tree.c:336:20: error: unused function 'mte_has_null' [-Werror,-Wunused-function]
336 | static inline bool mte_has_null(const struct maple_enode *node)
| ^~~~~~~~~~~~
3 errors generated.


vim +/mte_has_null +336 lib/maple_tree.c

335
> 336 static inline bool mte_has_null(const struct maple_enode *node)
337 {
338 return (unsigned long)node & MAPLE_ENODE_NULL;
339 }
340

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki