From: kernel test robot <lkp@intel.com>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: drivers/acpi/proc.c:139:30: warning: 'acpi_system_wakeup_device_proc_ops' defined but not used
Date: Fri, 9 Jun 2023 04:26:03 +0800 [thread overview]
Message-ID: <202306090452.xsDyLQQZ-lkp@intel.com> (raw)
Hi Alexey,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 25041a4c02c7cf774d8b6ed60586fd64f1cdaa81
commit: 97a32539b9568bb653683349e5a76d02ff3c3e2c proc: convert everything to "struct proc_ops"
date: 3 years, 4 months ago
config: i386-buildonly-randconfig-r003-20230608 (https://download.01.org/0day-ci/archive/20230609/202306090452.xsDyLQQZ-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=97a32539b9568bb653683349e5a76d02ff3c3e2c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 97a32539b9568bb653683349e5a76d02ff3c3e2c
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/acpi/ drivers/gpu/drm/ drivers/mtd/nand/raw/ fs/nfsd/ kernel/ net/sunrpc/
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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306090452.xsDyLQQZ-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/acpi/proc.c:139:30: warning: 'acpi_system_wakeup_device_proc_ops' defined but not used [-Wunused-const-variable=]
139 | static const struct proc_ops acpi_system_wakeup_device_proc_ops = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> net/sunrpc/cache.c:1636:30: warning: 'cache_flush_proc_ops' defined but not used [-Wunused-const-variable=]
1636 | static const struct proc_ops cache_flush_proc_ops = {
| ^~~~~~~~~~~~~~~~~~~~
>> net/sunrpc/cache.c:1598:30: warning: 'content_proc_ops' defined but not used [-Wunused-const-variable=]
1598 | static const struct proc_ops content_proc_ops = {
| ^~~~~~~~~~~~~~~~
>> net/sunrpc/cache.c:1574:30: warning: 'cache_channel_proc_ops' defined but not used [-Wunused-const-variable=]
1574 | static const struct proc_ops cache_channel_proc_ops = {
| ^~~~~~~~~~~~~~~~~~~~~~
--
>> fs/nfsd/nfsctl.c:160:30: warning: 'exports_proc_ops' defined but not used [-Wunused-const-variable=]
160 | static const struct proc_ops exports_proc_ops = {
| ^~~~~~~~~~~~~~~~
--
>> kernel/sched/psi.c:1272:30: warning: 'psi_cpu_proc_ops' defined but not used [-Wunused-const-variable=]
1272 | static const struct proc_ops psi_cpu_proc_ops = {
| ^~~~~~~~~~~~~~~~
>> kernel/sched/psi.c:1263:30: warning: 'psi_memory_proc_ops' defined but not used [-Wunused-const-variable=]
1263 | static const struct proc_ops psi_memory_proc_ops = {
| ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/psi.c:1254:30: warning: 'psi_io_proc_ops' defined but not used [-Wunused-const-variable=]
1254 | static const struct proc_ops psi_io_proc_ops = {
| ^~~~~~~~~~~~~~~
vim +/acpi_system_wakeup_device_proc_ops +139 drivers/acpi/proc.c
138
> 139 static const struct proc_ops acpi_system_wakeup_device_proc_ops = {
140 .proc_open = acpi_system_wakeup_device_open_fs,
141 .proc_read = seq_read,
142 .proc_write = acpi_system_write_wakeup_device,
143 .proc_lseek = seq_lseek,
144 .proc_release = single_release,
145 };
146
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-06-08 20:26 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=202306090452.xsDyLQQZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®