From: kernel test robot <lkp@intel.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/thunderbolt/test.c:1529:1: warning: the frame size of 1184 bytes is larger than 1024 bytes
Date: Tue, 1 Sep 2020 22:13:18 +0800 [thread overview]
Message-ID: <202009012214.w8Y33c9x%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 7081 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b51594df17d0ce80b9f9f35394a1f42d7ac94472
commit: 71fa1a4489ff93ac4acd7e6c5b00098ba53a4485 thunderbolt: merge fix for kunix_resource changes
date: 3 weeks ago
config: riscv-randconfig-p002-20200901 (attached as .config)
compiler: riscv32-linux-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
git checkout 71fa1a4489ff93ac4acd7e6c5b00098ba53a4485
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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 >>):
drivers/thunderbolt/test.c: In function 'tb_test_tunnel_usb3':
>> drivers/thunderbolt/test.c:1529:1: warning: the frame size of 1184 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1529 | }
| ^
drivers/thunderbolt/test.c: In function 'tb_test_tunnel_dp_max_length':
drivers/thunderbolt/test.c:1474:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1474 | }
| ^
drivers/thunderbolt/test.c: In function 'tb_test_tunnel_pcie':
drivers/thunderbolt/test.c:1260:1: warning: the frame size of 1184 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1260 | }
| ^
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71fa1a4489ff93ac4acd7e6c5b00098ba53a4485
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 71fa1a4489ff93ac4acd7e6c5b00098ba53a4485
vim +1529 drivers/thunderbolt/test.c
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1475
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1476 static void tb_test_tunnel_usb3(struct kunit *test)
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1477 {
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1478 struct tb_switch *host, *dev1, *dev2;
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1479 struct tb_tunnel *tunnel1, *tunnel2;
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1480 struct tb_port *down, *up;
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1481
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1482 /*
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1483 * Create USB3 tunnel between host and two devices.
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1484 *
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1485 * [Host]
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1486 * 1 |
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1487 * 1 |
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1488 * [Device #1]
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1489 * \ 7
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1490 * \ 1
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1491 * [Device #2]
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1492 */
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1493 host = alloc_host(test);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1494 dev1 = alloc_dev_default(test, host, 0x1, true);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1495 dev2 = alloc_dev_default(test, dev1, 0x701, true);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1496
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1497 down = &host->ports[12];
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1498 up = &dev1->ports[16];
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1499 tunnel1 = tb_tunnel_alloc_usb3(NULL, up, down, 0, 0);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1500 KUNIT_ASSERT_TRUE(test, tunnel1 != NULL);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1501 KUNIT_EXPECT_EQ(test, tunnel1->type, (enum tb_tunnel_type)TB_TUNNEL_USB3);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1502 KUNIT_EXPECT_PTR_EQ(test, tunnel1->src_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1503 KUNIT_EXPECT_PTR_EQ(test, tunnel1->dst_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1504 KUNIT_ASSERT_EQ(test, tunnel1->npaths, (size_t)2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1505 KUNIT_ASSERT_EQ(test, tunnel1->paths[0]->path_length, 2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1506 KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[0]->hops[0].in_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1507 KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[0]->hops[1].out_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1508 KUNIT_ASSERT_EQ(test, tunnel1->paths[1]->path_length, 2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1509 KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[1]->hops[0].in_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1510 KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[1]->hops[1].out_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1511
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1512 down = &dev1->ports[17];
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1513 up = &dev2->ports[16];
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1514 tunnel2 = tb_tunnel_alloc_usb3(NULL, up, down, 0, 0);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1515 KUNIT_ASSERT_TRUE(test, tunnel2 != NULL);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1516 KUNIT_EXPECT_EQ(test, tunnel2->type, (enum tb_tunnel_type)TB_TUNNEL_USB3);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1517 KUNIT_EXPECT_PTR_EQ(test, tunnel2->src_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1518 KUNIT_EXPECT_PTR_EQ(test, tunnel2->dst_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1519 KUNIT_ASSERT_EQ(test, tunnel2->npaths, (size_t)2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1520 KUNIT_ASSERT_EQ(test, tunnel2->paths[0]->path_length, 2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1521 KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[0]->hops[0].in_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1522 KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[0]->hops[1].out_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1523 KUNIT_ASSERT_EQ(test, tunnel2->paths[1]->path_length, 2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1524 KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[1]->hops[0].in_port, up);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1525 KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[1]->hops[1].out_port, down);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1526
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1527 tb_tunnel_free(tunnel2);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1528 tb_tunnel_free(tunnel1);
40c14d9f4f6d34 Mika Westerberg 2020-05-04 @1529 }
40c14d9f4f6d34 Mika Westerberg 2020-05-04 1530
:::::: The code at line 1529 was first introduced by commit
:::::: 40c14d9f4f6d3482af00356142c4ef6c8e6dd8fb thunderbolt: Add KUnit tests for tunneling
:::::: TO: Mika Westerberg <mika.westerberg@linux.intel.com>
:::::: CC: Mika Westerberg <mika.westerberg@linux.intel.com>
---
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: 35696 bytes --]
reply other threads:[~2020-09-01 14:42 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=202009012214.w8Y33c9x%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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
all inboxes | Powered by JetHome®