* [alibaba-cloud:linux-next 8099/9999] mm/unevictable.c:495:37: warning: 'del_proc_fops' defined but not used
@ 2023-03-21 15:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-21 15:28 UTC (permalink / raw)
To: alikernel-developer; +Cc: oe-kbuild-all
tree: https://github.com/alibaba/cloud-kernel.git linux-next
head: d121e0c25d1a19485d7f293b67901462bb1a6552
commit: 59cec5300f4d8fe7498bf85ab53211b8bedf9b2c [8099/9999] alinux: mm: bring back unevictable.o in obj-y
config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20230321/202303212347.c63YZJaV-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/alibaba/cloud-kernel/commit/59cec5300f4d8fe7498bf85ab53211b8bedf9b2c
git remote add alibaba-cloud https://github.com/alibaba/cloud-kernel.git
git fetch --no-tags alibaba-cloud linux-next
git checkout 59cec5300f4d8fe7498bf85ab53211b8bedf9b2c
# 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
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303212347.c63YZJaV-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/unevictable.c:489:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
489 | const static struct file_operations add_proc_fops = {
| ^~~~~
mm/unevictable.c:495:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
495 | const static struct file_operations del_proc_fops = {
| ^~~~~
>> mm/unevictable.c:495:37: warning: 'del_proc_fops' defined but not used [-Wunused-const-variable=]
495 | const static struct file_operations del_proc_fops = {
| ^~~~~~~~~~~~~
>> mm/unevictable.c:489:37: warning: 'add_proc_fops' defined but not used [-Wunused-const-variable=]
489 | const static struct file_operations add_proc_fops = {
| ^~~~~~~~~~~~~
vim +/del_proc_fops +495 mm/unevictable.c
7d6cb94f148e9e Xunlei Pang 2019-09-19 488
7d6cb94f148e9e Xunlei Pang 2019-09-19 @489 const static struct file_operations add_proc_fops = {
7d6cb94f148e9e Xunlei Pang 2019-09-19 490 .read = proc_read_add_pid,
7d6cb94f148e9e Xunlei Pang 2019-09-19 491 .write = proc_write_add_pid,
7d6cb94f148e9e Xunlei Pang 2019-09-19 492 .owner = THIS_MODULE,
7d6cb94f148e9e Xunlei Pang 2019-09-19 493 };
7d6cb94f148e9e Xunlei Pang 2019-09-19 494
7d6cb94f148e9e Xunlei Pang 2019-09-19 @495 const static struct file_operations del_proc_fops = {
7d6cb94f148e9e Xunlei Pang 2019-09-19 496 .write = proc_write_del_pid,
7d6cb94f148e9e Xunlei Pang 2019-09-19 497 .owner = THIS_MODULE,
7d6cb94f148e9e Xunlei Pang 2019-09-19 498 };
7d6cb94f148e9e Xunlei Pang 2019-09-19 499
:::::: The code at line 495 was first introduced by commit
:::::: 7d6cb94f148e9e9cce24d3ce5ccb65b49974b547 alinux: mm: Pin code section of process in memory
:::::: TO: Xunlei Pang <xlpang@linux.alibaba.com>
:::::: CC: Xu Yu <xuyu@linux.alibaba.com>
--
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-03-21 15:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 15:28 [alibaba-cloud:linux-next 8099/9999] mm/unevictable.c:495:37: warning: 'del_proc_fops' defined but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).