[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202506240611.WIZwT0sn-lkp@intel.com>
Date: Tue, 24 Jun 2025 06:27:40 +0800
From: kernel test robot <lkp@...el.com>
To: Chen Yu <yu.c.chen@...el.com>
Cc: llvm@...ts.linux.dev, 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/virtio/virtio_balloon.c:401:21: warning: stack frame size
(1040) exceeds limit (1024) in 'update_balloon_stats'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 86731a2a651e58953fc949573895f2fa6d456841
commit: ad6b26b6a0a79166b53209df2ca1cf8636296382 sched/numa: add statistics of numa balance task
date: 3 weeks ago
config: s390-defconfig (https://download.01.org/0day-ci/archive/20250624/202506240611.WIZwT0sn-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 875b36a8742437b95f623bab1e0332562c7b4b3f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250624/202506240611.WIZwT0sn-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/202506240611.WIZwT0sn-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/virtio/virtio_balloon.c:401:21: warning: stack frame size (1040) exceeds limit (1024) in 'update_balloon_stats' [-Wframe-larger-than]
401 | static unsigned int update_balloon_stats(struct virtio_balloon *vb)
| ^
1 warning generated.
vim +/update_balloon_stats +401 drivers/virtio/virtio_balloon.c
fdba68d2adf8d9 zhenwei pi 2024-04-23 400
fdba68d2adf8d9 zhenwei pi 2024-04-23 @401 static unsigned int update_balloon_stats(struct virtio_balloon *vb)
fdba68d2adf8d9 zhenwei pi 2024-04-23 402 {
fdba68d2adf8d9 zhenwei pi 2024-04-23 403 struct sysinfo i;
fdba68d2adf8d9 zhenwei pi 2024-04-23 404 unsigned int idx;
fdba68d2adf8d9 zhenwei pi 2024-04-23 405 long available;
fdba68d2adf8d9 zhenwei pi 2024-04-23 406 unsigned long caches;
fdba68d2adf8d9 zhenwei pi 2024-04-23 407
fdba68d2adf8d9 zhenwei pi 2024-04-23 408 idx = update_balloon_vm_stats(vb);
fdba68d2adf8d9 zhenwei pi 2024-04-23 409
fdba68d2adf8d9 zhenwei pi 2024-04-23 410 si_meminfo(&i);
fdba68d2adf8d9 zhenwei pi 2024-04-23 411 available = si_mem_available();
fdba68d2adf8d9 zhenwei pi 2024-04-23 412 caches = global_node_page_state(NR_FILE_PAGES);
9564e138b1f6eb Adam Litke 2009-11-30 413 update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE,
9564e138b1f6eb Adam Litke 2009-11-30 414 pages_to_bytes(i.freeram));
9564e138b1f6eb Adam Litke 2009-11-30 415 update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT,
9564e138b1f6eb Adam Litke 2009-11-30 416 pages_to_bytes(i.totalram));
5057dcd0f1aaad Igor Redko 2016-03-17 417 update_stat(vb, idx++, VIRTIO_BALLOON_S_AVAIL,
5057dcd0f1aaad Igor Redko 2016-03-17 418 pages_to_bytes(available));
4d32029b8ddb7b Tomáš Golembiovský 2017-11-12 419 update_stat(vb, idx++, VIRTIO_BALLOON_S_CACHES,
4d32029b8ddb7b Tomáš Golembiovský 2017-11-12 420 pages_to_bytes(caches));
9646b26e85896e Ladi Prosek 2017-03-28 421
9646b26e85896e Ladi Prosek 2017-03-28 422 return idx;
9564e138b1f6eb Adam Litke 2009-11-30 423 }
9564e138b1f6eb Adam Litke 2009-11-30 424
:::::: The code at line 401 was first introduced by commit
:::::: fdba68d2adf8d9ae680e23e8b8ba79330baa45bc virtio_balloon: separate vm events into a function
:::::: TO: zhenwei pi <pizhenwei@...edance.com>
:::::: CC: Michael S. Tsirkin <mst@...hat.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists