All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hao Jia <jiahao1@lixiang.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: arch/s390/appldata/appldata_mem.c:72:13: warning: stack frame size (1040) exceeds limit (1024) in 'appldata_get_mem_data'
Date: Tue, 24 Jun 2025 09:47:01 +0800	[thread overview]
Message-ID: <202506240917.5GatGoT7-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   78f4e737a53e1163ded2687a922fce138aee73f5
commit: e452872b40e3f1fb92adf0d573a0a6a7c9f6ce22 mm: vmscan: split proactive reclaim statistics from direct reclaim statistics
date:   3 months ago
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250624/202506240917.5GatGoT7-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250624/202506240917.5GatGoT7-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/202506240917.5GatGoT7-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/s390/appldata/appldata_mem.c:72:13: warning: stack frame size (1040) exceeds limit (1024) in 'appldata_get_mem_data' [-Wframe-larger-than]
      72 | static void appldata_get_mem_data(void *data)
         |             ^
   1 warning generated.


vim +/appldata_get_mem_data +72 arch/s390/appldata/appldata_mem.c

^1da177e4c3f415 Linus Torvalds    2005-04-16   65  
^1da177e4c3f415 Linus Torvalds    2005-04-16   66  
^1da177e4c3f415 Linus Torvalds    2005-04-16   67  /*
^1da177e4c3f415 Linus Torvalds    2005-04-16   68   * appldata_get_mem_data()
^1da177e4c3f415 Linus Torvalds    2005-04-16   69   *
^1da177e4c3f415 Linus Torvalds    2005-04-16   70   * gather memory data
^1da177e4c3f415 Linus Torvalds    2005-04-16   71   */
^1da177e4c3f415 Linus Torvalds    2005-04-16  @72  static void appldata_get_mem_data(void *data)
^1da177e4c3f415 Linus Torvalds    2005-04-16   73  {
^1da177e4c3f415 Linus Torvalds    2005-04-16   74  	/*
^1da177e4c3f415 Linus Torvalds    2005-04-16   75  	 * don't put large structures on the stack, we are
b1ad171efa089ae Gerald Schaefer   2009-04-23   76  	 * serialized through the appldata_ops_mutex and can use static
^1da177e4c3f415 Linus Torvalds    2005-04-16   77  	 */
^1da177e4c3f415 Linus Torvalds    2005-04-16   78  	static struct sysinfo val;
f8891e5e1f93a12 Christoph Lameter 2006-06-30   79  	unsigned long ev[NR_VM_EVENT_ITEMS];
^1da177e4c3f415 Linus Torvalds    2005-04-16   80  	struct appldata_mem_data *mem_data;
^1da177e4c3f415 Linus Torvalds    2005-04-16   81  
^1da177e4c3f415 Linus Torvalds    2005-04-16   82  	mem_data = data;
^1da177e4c3f415 Linus Torvalds    2005-04-16   83  	mem_data->sync_count_1++;
^1da177e4c3f415 Linus Torvalds    2005-04-16   84  
f8891e5e1f93a12 Christoph Lameter 2006-06-30   85  	all_vm_events(ev);
f8891e5e1f93a12 Christoph Lameter 2006-06-30   86  	mem_data->pgpgin     = ev[PGPGIN] >> 1;
f8891e5e1f93a12 Christoph Lameter 2006-06-30   87  	mem_data->pgpgout    = ev[PGPGOUT] >> 1;
f8891e5e1f93a12 Christoph Lameter 2006-06-30   88  	mem_data->pswpin     = ev[PSWPIN];
f8891e5e1f93a12 Christoph Lameter 2006-06-30   89  	mem_data->pswpout    = ev[PSWPOUT];
bb81e6050fdc0f2 Al Viro           2007-03-14   90  	mem_data->pgalloc    = ev[PGALLOC_NORMAL];
bb81e6050fdc0f2 Al Viro           2007-03-14   91  	mem_data->pgalloc    += ev[PGALLOC_DMA];
f8891e5e1f93a12 Christoph Lameter 2006-06-30   92  	mem_data->pgfault    = ev[PGFAULT];
f8891e5e1f93a12 Christoph Lameter 2006-06-30   93  	mem_data->pgmajfault = ev[PGMAJFAULT];
^1da177e4c3f415 Linus Torvalds    2005-04-16   94  
^1da177e4c3f415 Linus Torvalds    2005-04-16   95  	si_meminfo(&val);
^1da177e4c3f415 Linus Torvalds    2005-04-16   96  	mem_data->sharedram = val.sharedram;
^1da177e4c3f415 Linus Torvalds    2005-04-16   97  	mem_data->totalram  = P2K(val.totalram);
^1da177e4c3f415 Linus Torvalds    2005-04-16   98  	mem_data->freeram   = P2K(val.freeram);
^1da177e4c3f415 Linus Torvalds    2005-04-16   99  	mem_data->totalhigh = P2K(val.totalhigh);
^1da177e4c3f415 Linus Torvalds    2005-04-16  100  	mem_data->freehigh  = P2K(val.freehigh);
^1da177e4c3f415 Linus Torvalds    2005-04-16  101  	mem_data->bufferram = P2K(val.bufferram);
11fb998986a72aa Mel Gorman        2016-07-28  102  	mem_data->cached    = P2K(global_node_page_state(NR_FILE_PAGES)
347ce434d57da80 Christoph Lameter 2006-06-30  103  				- val.bufferram);
^1da177e4c3f415 Linus Torvalds    2005-04-16  104  
^1da177e4c3f415 Linus Torvalds    2005-04-16  105  	si_swapinfo(&val);
^1da177e4c3f415 Linus Torvalds    2005-04-16  106  	mem_data->totalswap = P2K(val.totalswap);
^1da177e4c3f415 Linus Torvalds    2005-04-16  107  	mem_data->freeswap  = P2K(val.freeswap);
^1da177e4c3f415 Linus Torvalds    2005-04-16  108  
1aae0560d160ee6 Heiko Carstens    2013-01-30  109  	mem_data->timestamp = get_tod_clock();
^1da177e4c3f415 Linus Torvalds    2005-04-16  110  	mem_data->sync_count_2++;
^1da177e4c3f415 Linus Torvalds    2005-04-16  111  }
^1da177e4c3f415 Linus Torvalds    2005-04-16  112  

:::::: The code at line 72 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-06-24  1:48 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=202506240917.5GatGoT7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=jiahao1@lixiang.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.