From: kernel test robot <lkp@intel.com>
To: Chen Yu <yu.c.chen@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: drivers/virtio/virtio_balloon.c:401:21: warning: stack frame size (1040) exceeds limit (1024) in 'update_balloon_stats'
Date: Tue, 24 Jun 2025 06:27:40 +0800 [thread overview]
Message-ID: <202506240611.WIZwT0sn-lkp@intel.com> (raw)
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@intel.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@bytedance.com>
:::::: CC: Michael S. Tsirkin <mst@redhat.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-06-23 22:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202506240611.WIZwT0sn-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yu.c.chen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox