public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Richard Fitzgerald <rf@opensource.cirrus.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Petr Mladek <pmladek@suse.com>
Subject: lib/test_scanf.c:531:1: warning: the frame size of 2080 bytes is larger than 2048 bytes
Date: Tue, 13 Jul 2021 16:21:09 +0800	[thread overview]
Message-ID: <202107131602.8qHTzV8q-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4693 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7fef2edf7cc753b51f7ccc74993971b0a9c81eca
commit: 50f530e176eac808e64416732e54c0686ce2c39b lib: test_scanf: Add tests for sscanf number conversion
date:   8 weeks ago
config: arm-randconfig-r001-20210713 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=50f530e176eac808e64416732e54c0686ce2c39b
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 50f530e176eac808e64416732e54c0686ce2c39b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   lib/test_scanf.c: In function 'numbers_list_field_width_val_width':
>> lib/test_scanf.c:531:1: warning: the frame size of 2080 bytes is larger than 2048 bytes [-Wframe-larger-than=]
     531 | }
         | ^
   lib/test_scanf.c: In function 'numbers_list_field_width_typemax':
   lib/test_scanf.c:489:1: warning: the frame size of 2552 bytes is larger than 2048 bytes [-Wframe-larger-than=]
     489 | }
         | ^
   lib/test_scanf.c: In function 'numbers_list':
   lib/test_scanf.c:438:1: warning: the frame size of 2080 bytes is larger than 2048 bytes [-Wframe-larger-than=]
     438 | }
         | ^


vim +531 lib/test_scanf.c

   490	
   491	/*
   492	 * List of numbers separated by delim. Each field width specifier is the
   493	 * exact length of the corresponding value digits in the string being scanned.
   494	 */
   495	static void __init numbers_list_field_width_val_width(const char *delim)
   496	{
   497		numbers_list_val_width(unsigned long long, "%llu",   delim, "llu", check_ull);
   498		numbers_list_val_width(long long,	   "%lld",   delim, "lld", check_ll);
   499		numbers_list_val_width(long long,	   "%lld",   delim, "lli", check_ll);
   500		numbers_list_val_width(unsigned long long, "%llx",   delim, "llx", check_ull);
   501		numbers_list_val_width(unsigned long long, "0x%llx", delim, "llx", check_ull);
   502		numbers_list_val_width(long long,	   "0x%llx", delim, "lli", check_ll);
   503	
   504		numbers_list_val_width(unsigned long,	"%lu",	     delim, "lu", check_ulong);
   505		numbers_list_val_width(long,		"%ld",	     delim, "ld", check_long);
   506		numbers_list_val_width(long,		"%ld",	     delim, "li", check_long);
   507		numbers_list_val_width(unsigned long,	"%lx",	     delim, "lx", check_ulong);
   508		numbers_list_val_width(unsigned long,	"0x%lx",     delim, "lx", check_ulong);
   509		numbers_list_val_width(long,		"0x%lx",     delim, "li", check_long);
   510	
   511		numbers_list_val_width(unsigned int,	"%u",	     delim, "u", check_uint);
   512		numbers_list_val_width(int,		"%d",	     delim, "d", check_int);
   513		numbers_list_val_width(int,		"%d",	     delim, "i", check_int);
   514		numbers_list_val_width(unsigned int,	"%x",	     delim, "x", check_uint);
   515		numbers_list_val_width(unsigned int,	"0x%x",	     delim, "x", check_uint);
   516		numbers_list_val_width(int,		"0x%x",	     delim, "i", check_int);
   517	
   518		numbers_list_val_width(unsigned short,	"%hu",	     delim, "hu", check_ushort);
   519		numbers_list_val_width(short,		"%hd",	     delim, "hd", check_short);
   520		numbers_list_val_width(short,		"%hd",	     delim, "hi", check_short);
   521		numbers_list_val_width(unsigned short,	"%hx",	     delim, "hx", check_ushort);
   522		numbers_list_val_width(unsigned short,	"0x%hx",     delim, "hx", check_ushort);
   523		numbers_list_val_width(short,		"0x%hx",     delim, "hi", check_short);
   524	
   525		numbers_list_val_width(unsigned char,	"%hhu",	     delim, "hhu", check_uchar);
   526		numbers_list_val_width(signed char,	"%hhd",	     delim, "hhd", check_char);
   527		numbers_list_val_width(signed char,	"%hhd",	     delim, "hhi", check_char);
   528		numbers_list_val_width(unsigned char,	"%hhx",	     delim, "hhx", check_uchar);
   529		numbers_list_val_width(unsigned char,	"0x%hhx",    delim, "hhx", check_uchar);
   530		numbers_list_val_width(signed char,	"0x%hhx",    delim, "hhi", check_char);
 > 531	}
   532	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39366 bytes --]

             reply	other threads:[~2021-07-13  8:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13  8:21 kernel test robot [this message]
2021-07-23 16:15 ` lib/test_scanf.c:531:1: warning: the frame size of 2080 bytes is larger than 2048 bytes Richard Fitzgerald
2021-07-27  9:01   ` [kbuild-all] " Chen, Rong A

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=202107131602.8qHTzV8q-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmladek@suse.com \
    --cc=rf@opensource.cirrus.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