From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: lib/maple_tree.c:336:20: warning: unused function 'mte_has_null'
Date: Thu, 19 Jan 2023 10:08:09 +0800 [thread overview]
Message-ID: <202301190933.XPcabbE7-lkp@intel.com> (raw)
::::::
:::::: 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
reply other threads:[~2023-01-19 2:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202301190933.XPcabbE7-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.