All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: lib/kunit/kunit-test.c:362:1: warning: the frame size of 1168 bytes is larger than 1024 bytes
Date: Sun, 14 Nov 2021 08:56:48 +0800	[thread overview]
Message-ID: <202111140840.ExnmpxUb-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4340 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(a)lists.01.org

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: David Gow <davidgow@google.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Shuah Khan <skhan@linuxfoundation.org>,
	Daniel Latypov <dlatypov@google.com>,
	Brendan Higgins <brendanhiggins@google.com>
Subject: lib/kunit/kunit-test.c:362:1: warning: the frame size of 1168 bytes is larger than 1024 bytes
Date: Sun, 14 Nov 2021 08:56:48 +0800	[thread overview]
Message-ID: <202111140840.ExnmpxUb-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-11-14  0:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-14  0:56 kernel test robot [this message]
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

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=202111140840.ExnmpxUb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.