[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202507011934.YZ0Qoq4s-lkp@intel.com>
Date: Tue, 1 Jul 2025 20:05:37 +0800
From: kernel test robot <lkp@...el.com>
To: Nathan Chancellor <nathan@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Masahiro Yamada <masahiroy@...nel.org>
Subject: fs/lockd/svcsubs.c:416:1: warning: stack frame size (1032) exceeds
limit (1024) in 'nlmsvc_mark_resources'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 66701750d5565c574af42bef0b789ce0203e3071
commit: 3415b10a03945b0da4a635e146750dfe5ce0f448 kbuild: Fix '-S -c' in x86 stack protector scripts
date: 11 months ago
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250701/202507011934.YZ0Qoq4s-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250701/202507011934.YZ0Qoq4s-lkp@intel.com/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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507011934.YZ0Qoq4s-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from fs/lockd/svcsubs.c:16:
In file included from include/linux/sunrpc/svc.h:17:
In file included from include/linux/sunrpc/xdr.h:17:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2221:
include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
500 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
501 | item];
| ~~~~
include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
507 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
508 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
519 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
520 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
528 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
529 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> fs/lockd/svcsubs.c:416:1: warning: stack frame size (1032) exceeds limit (1024) in 'nlmsvc_mark_resources' [-Wframe-larger-than]
416 | nlmsvc_mark_resources(struct net *net)
| ^
6 warnings generated.
--
In file included from drivers/dma/dw-edma/dw-edma-pcie.c:11:
In file included from include/linux/pci.h:1648:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2221:
include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
500 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
501 | item];
| ~~~~
include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
507 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
508 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
519 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
520 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
528 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
529 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/dma/dw-edma/dw-edma-pcie.c:159:12: warning: stack frame size (1032) exceeds limit (1024) in 'dw_edma_pcie_probe' [-Wframe-larger-than]
159 | static int dw_edma_pcie_probe(struct pci_dev *pdev,
| ^
6 warnings generated.
--
In file included from drivers/video/fbdev/savage/savagefb_driver.c:49:
In file included from include/linux/mm.h:2221:
include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
500 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
501 | item];
| ~~~~
include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
507 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
508 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
519 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
520 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
528 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
529 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/video/fbdev/savage/savagefb_driver.c:1503:12: warning: stack frame size (1032) exceeds limit (1024) in 'savagefb_set_par' [-Wframe-larger-than]
1503 | static int savagefb_set_par(struct fb_info *info)
| ^
6 warnings generated.
vim +/nlmsvc_mark_resources +416 fs/lockd/svcsubs.c
f2af793db02d2c Olaf Kirch 2006-10-04 411
^1da177e4c3f41 Linus Torvalds 2005-04-16 412 /*
^1da177e4c3f41 Linus Torvalds 2005-04-16 413 * Mark all hosts that still hold resources
^1da177e4c3f41 Linus Torvalds 2005-04-16 414 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 415 void
b26411f85d3763 Stanislav Kinsbursky 2012-07-25 @416 nlmsvc_mark_resources(struct net *net)
^1da177e4c3f41 Linus Torvalds 2005-04-16 417 {
b26411f85d3763 Stanislav Kinsbursky 2012-07-25 418 struct nlm_host hint;
b26411f85d3763 Stanislav Kinsbursky 2012-07-25 419
e919b0765287f3 Vasily Averin 2017-11-08 420 dprintk("lockd: %s for net %x\n", __func__, net ? net->ns.inum : 0);
b26411f85d3763 Stanislav Kinsbursky 2012-07-25 421 hint.net = net;
b26411f85d3763 Stanislav Kinsbursky 2012-07-25 422 nlm_traverse_files(&hint, nlmsvc_mark_host, NULL);
^1da177e4c3f41 Linus Torvalds 2005-04-16 423 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 424
:::::: The code at line 416 was first introduced by commit
:::::: b26411f85d3763ec5fc553854d9c3c0966072090 LockD: mark host per network namespace on garbage collect
:::::: TO: Stanislav Kinsbursky <skinsbursky@...allels.com>
:::::: CC: J. Bruce Fields <bfields@...hat.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists