From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Jason Gunthorpe <jgg@ziepe.ca>,
Thomas Hellstrom <thellstrom@vmware.com>,
Steven Price <steven.price@arm.com>
Subject: fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used
Date: Mon, 16 May 2022 11:31:25 +0800 [thread overview]
Message-ID: <202205161152.pu8S9frR-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 42226c989789d8da4af1de0c31070c96726d990c
commit: 7b86ac3371b70c3fd8fd95501719beb1faab719f pagewalk: separate function pointers from iterator data
date: 2 years, 8 months ago
config: i386-buildonly-randconfig-r001-20220516 (https://download.01.org/0day-ci/archive/20220516/202205161152.pu8S9frR-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b86ac3371b70c3fd8fd95501719beb1faab719f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7b86ac3371b70c3fd8fd95501719beb1faab719f
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/proc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used [-Wunused-const-variable=]
743 | static const struct mm_walk_ops smaps_shmem_walk_ops = {
| ^~~~~~~~~~~~~~~~~~~~
vim +/smaps_shmem_walk_ops +743 fs/proc/task_mmu.c
742
> 743 static const struct mm_walk_ops smaps_shmem_walk_ops = {
744 .pmd_entry = smaps_pte_range,
745 .hugetlb_entry = smaps_hugetlb_range,
746 .pte_hole = smaps_pte_hole,
747 };
748
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next reply other threads:[~2022-05-16 3:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 3:31 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-09-19 6:11 fs/proc/task_mmu.c:743:33: warning: 'smaps_shmem_walk_ops' defined but not used kernel test robot
2023-04-03 9:23 kernel test robot
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=202205161152.pu8S9frR-lkp@intel.com \
--to=lkp@intel.com \
--cc=hch@lst.de \
--cc=jgg@ziepe.ca \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=steven.price@arm.com \
--cc=thellstrom@vmware.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox