Re: [PATCH] mm/vmstat: reject zero vm.stat_interval to prevent busy-loop
From: kernel test robot
Date: Wed Mar 04 2026 - 19:35:56 EST
Hi Maximilian,
kernel test robot noticed the following build warnings:
[auto build test WARNING on af4e9ef3d78420feb8fe58cd9a1ab80c501b3c08]
url: https://github.com/intel-lab-lkp/linux/commits/Maximilian-Pezzullo-via-B4-Relay/mm-vmstat-reject-zero-vm-stat_interval-to-prevent-busy-loop/20260304-153052
base: af4e9ef3d78420feb8fe58cd9a1ab80c501b3c08
patch link: https://lore.kernel.org/r/20260304-mm-vmstat-reject-zero-vm-stat_interval-to-prevent-busy-loop-v1-1-c03c9555ff15%40gmail.com
patch subject: [PATCH] mm/vmstat: reject zero vm.stat_interval to prevent busy-loop
config: parisc-randconfig-002-20260305 (https://download.01.org/0day-ci/archive/20260305/202603050819.oMnaHoIC-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260305/202603050819.oMnaHoIC-lkp@xxxxxxxxx/reproduce)
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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603050819.oMnaHoIC-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> mm/vmstat.c:2117:12: warning: 'vmstat_interval_handler' defined but not used [-Wunused-function]
static int vmstat_interval_handler(const struct ctl_table *table, int write,
^~~~~~~~~~~~~~~~~~~~~~~
vim +/vmstat_interval_handler +2117 mm/vmstat.c
2116
> 2117 static int vmstat_interval_handler(const struct ctl_table *table, int write,
2118 void *buffer, size_t *lenp, loff_t *ppos)
2119 {
2120 int ret = proc_dointvec_jiffies(table, write, buffer, lenp, ppos);
2121
2122 if (ret == 0 && write && sysctl_stat_interval == 0) {
2123 sysctl_stat_interval = HZ;
2124 return -EINVAL;
2125 }
2126 return ret;
2127 }
2128
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki