public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* lib/kunit/kunit-test.c:362:1: warning: the frame size of 1168 bytes is larger than 1024 bytes
@ 2021-11-14  0:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-14  0:56 UTC (permalink / raw)
  To: David Gow
  Cc: kbuild-all, linux-kernel, Shuah Khan, Daniel Latypov,
	Brendan Higgins

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ccfff0a2bd2a30de130b5623d242ddecd0272bc2
commit: 6d2426b2f258da19fbe5fa1c93a5695460390eac kunit: Support skipped tests
date:   5 months ago
config: powerpc64-randconfig-r016-20211114 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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=6d2426b2f258da19fbe5fa1c93a5695460390eac
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6d2426b2f258da19fbe5fa1c93a5695460390eac
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc 

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/kunit/kunit-test.c: In function 'kunit_resource_test_named':
>> lib/kunit/kunit-test.c:362:1: warning: the frame size of 1168 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     362 | }
         | ^


vim +362 lib/kunit/kunit-test.c

d4cdd146d0db90 Alan Maguire 2020-05-29  327  
725aca95859566 Alan Maguire 2020-05-29  328  static void kunit_resource_test_named(struct kunit *test)
725aca95859566 Alan Maguire 2020-05-29  329  {
725aca95859566 Alan Maguire 2020-05-29  330  	struct kunit_resource res1, res2, *found = NULL;
725aca95859566 Alan Maguire 2020-05-29  331  	struct kunit_test_resource_context ctx;
725aca95859566 Alan Maguire 2020-05-29  332  
725aca95859566 Alan Maguire 2020-05-29  333  	KUNIT_EXPECT_EQ(test,
725aca95859566 Alan Maguire 2020-05-29  334  			kunit_add_named_resource(test, NULL, NULL, &res1,
725aca95859566 Alan Maguire 2020-05-29  335  						 "resource_1", &ctx),
725aca95859566 Alan Maguire 2020-05-29  336  			0);
725aca95859566 Alan Maguire 2020-05-29  337  	KUNIT_EXPECT_PTR_EQ(test, res1.data, (void *)&ctx);
725aca95859566 Alan Maguire 2020-05-29  338  
725aca95859566 Alan Maguire 2020-05-29  339  	KUNIT_EXPECT_EQ(test,
725aca95859566 Alan Maguire 2020-05-29  340  			kunit_add_named_resource(test, NULL, NULL, &res1,
725aca95859566 Alan Maguire 2020-05-29  341  						 "resource_1", &ctx),
725aca95859566 Alan Maguire 2020-05-29  342  			-EEXIST);
725aca95859566 Alan Maguire 2020-05-29  343  
725aca95859566 Alan Maguire 2020-05-29  344  	KUNIT_EXPECT_EQ(test,
725aca95859566 Alan Maguire 2020-05-29  345  			kunit_add_named_resource(test, NULL, NULL, &res2,
725aca95859566 Alan Maguire 2020-05-29  346  						 "resource_2", &ctx),
725aca95859566 Alan Maguire 2020-05-29  347  			0);
725aca95859566 Alan Maguire 2020-05-29  348  
725aca95859566 Alan Maguire 2020-05-29  349  	found = kunit_find_named_resource(test, "resource_1");
725aca95859566 Alan Maguire 2020-05-29  350  
725aca95859566 Alan Maguire 2020-05-29  351  	KUNIT_EXPECT_PTR_EQ(test, found, &res1);
725aca95859566 Alan Maguire 2020-05-29  352  
725aca95859566 Alan Maguire 2020-05-29  353  	if (found)
725aca95859566 Alan Maguire 2020-05-29  354  		kunit_put_resource(&res1);
725aca95859566 Alan Maguire 2020-05-29  355  
725aca95859566 Alan Maguire 2020-05-29  356  	KUNIT_EXPECT_EQ(test, kunit_destroy_named_resource(test, "resource_2"),
725aca95859566 Alan Maguire 2020-05-29  357  			0);
725aca95859566 Alan Maguire 2020-05-29  358  
725aca95859566 Alan Maguire 2020-05-29  359  	kunit_cleanup(test);
725aca95859566 Alan Maguire 2020-05-29  360  
725aca95859566 Alan Maguire 2020-05-29  361  	KUNIT_EXPECT_TRUE(test, list_empty(&test->resources));
725aca95859566 Alan Maguire 2020-05-29 @362  }
725aca95859566 Alan Maguire 2020-05-29  363  

:::::: The code at line 362 was first introduced by commit
:::::: 725aca9585956676687c4cb803e88f770b0df2b2 kunit: add support for named resources

:::::: TO: Alan Maguire <alan.maguire@oracle.com>
:::::: CC: Shuah Khan <skhan@linuxfoundation.org>

---
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: 35475 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-14  0:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-14  0:56 lib/kunit/kunit-test.c:362:1: warning: the frame size of 1168 bytes is larger than 1024 bytes kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox