[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111140840.ExnmpxUb-lkp@intel.com>
Date: Sun, 14 Nov 2021 08:56:48 +0800
From: kernel test robot <lkp@...el.com>
To: David Gow <davidgow@...gle.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Shuah Khan <skhan@...uxfoundation.org>,
Daniel Latypov <dlatypov@...gle.com>,
Brendan Higgins <brendanhiggins@...gle.com>
Subject: lib/kunit/kunit-test.c:362:1: warning: the frame size of 1168 bytes
is larger than 1024 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@...el.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@...cle.com>
:::::: CC: Shuah Khan <skhan@...uxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (35475 bytes)
Powered by blists - more mailing lists