* lib/maple_tree.c:336:20: warning: unused function 'mte_has_null'
@ 2023-01-19 2:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-19 2:08 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "gcc: unused function warning for stub function"
::::::
BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Liam Howlett <liam.howlett@oracle.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
CC: "Liam R. Howlett" <Liam.Howlett@oracle.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7287904c8771b77b9504f53623bb477065c19a58
commit: 6e7ba8b5e2380f941dda8a1025d70c5ce5b38982 maple_tree: mte_set_full() and mte_clear_full() clang-analyzer clean up
date: 7 weeks ago
:::::: branch date: 3 hours ago
:::::: commit date: 7 weeks ago
config: x86_64-randconfig-a004-20230116 (https://download.01.org/0day-ci/archive/20230119/202301190933.XPcabbE7-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6e7ba8b5e2380f941dda8a1025d70c5ce5b38982
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6e7ba8b5e2380f941dda8a1025d70c5ce5b38982
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
lib/maple_tree.c:326:21: warning: unused function 'mte_set_full' [-Wunused-function]
static inline void *mte_set_full(const struct maple_enode *node)
^
lib/maple_tree.c:331:21: warning: unused function 'mte_clear_full' [-Wunused-function]
static inline void *mte_clear_full(const struct maple_enode *node)
^
>> lib/maple_tree.c:336:20: warning: unused function 'mte_has_null' [-Wunused-function]
static inline bool mte_has_null(const struct maple_enode *node)
^
3 warnings generated.
vim +/mte_has_null +336 lib/maple_tree.c
6e7ba8b5e2380f9 Liam Howlett 2022-10-28 335
6e7ba8b5e2380f9 Liam Howlett 2022-10-28 @336 static inline bool mte_has_null(const struct maple_enode *node)
6e7ba8b5e2380f9 Liam Howlett 2022-10-28 337 {
6e7ba8b5e2380f9 Liam Howlett 2022-10-28 338 return (unsigned long)node & MAPLE_ENODE_NULL;
54a611b605901c7 Liam R. Howlett 2022-09-06 339 }
54a611b605901c7 Liam R. Howlett 2022-09-06 340
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-19 2:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 2:08 lib/maple_tree.c:336:20: warning: unused function 'mte_has_null' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.