[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202306090452.xsDyLQQZ-lkp@intel.com>
Date: Fri, 9 Jun 2023 04:26:03 +0800
From: kernel test robot <lkp@...el.com>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>
Subject: drivers/acpi/proc.c:139:30: warning:
'acpi_system_wakeup_device_proc_ops' defined but not used
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@...el.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
Powered by blists - more mailing lists