[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202101030539.cjaFxRwo-lkp@intel.com>
Date: Sun, 3 Jan 2021 05:03:43 +0800
From: kernel test robot <lkp@...el.com>
To: Paul Burton <paul.burton@...s.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/vhost/scsi.c:1374:1: warning: the frame size of 1056 bytes
is larger than 1024 bytes
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: eda809aef53426d044b519405d25d9da55319b76
commit: 2f2b4fd674cadd8c6b40eb629e140a14db4068fd MIPS: Disable Loongson MMI instructions for kernel build
date: 1 year, 3 months ago
config: mips-loongson3_defconfig (attached as .config)
compiler: mips64el-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2f2b4fd674cadd8c6b40eb629e140a14db4068fd
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2f2b4fd674cadd8c6b40eb629e140a14db4068fd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
drivers/vhost/scsi.c: In function 'vhost_scsi_flush':
>> drivers/vhost/scsi.c:1374:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1374 | }
| ^
--
drivers/vhost/vhost.c: In function 'log_used':
>> drivers/vhost/vhost.c:1931:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1931 | }
| ^
vim +1374 drivers/vhost/scsi.c
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1347
3dfbff328f0491b drivers/vhost/tcm_vhost.c Michael S. Tsirkin 2013-04-28 1348 /* Callers must hold dev mutex */
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1349 static void vhost_scsi_flush(struct vhost_scsi *vs)
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1350 {
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1351 struct vhost_scsi_inflight *old_inflight[VHOST_SCSI_MAX_VQ];
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1352 int i;
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1353
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1354 /* Init new inflight and remember the old inflight */
1a1ff8256af679c drivers/vhost/scsi.c Nicholas Bellinger 2015-01-31 1355 vhost_scsi_init_inflight(vs, old_inflight);
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1356
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1357 /*
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1358 * The inflight->kref was initialized to 1. We decrement it here to
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1359 * indicate the start of the flush operation so that it will reach 0
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1360 * when all the reqs are finished.
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1361 */
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1362 for (i = 0; i < VHOST_SCSI_MAX_VQ; i++)
1a1ff8256af679c drivers/vhost/scsi.c Nicholas Bellinger 2015-01-31 1363 kref_put(&old_inflight[i]->kref, vhost_scsi_done_inflight);
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1364
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1365 /* Flush both the vhost poll and vhost work */
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1366 for (i = 0; i < VHOST_SCSI_MAX_VQ; i++)
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1367 vhost_scsi_flush_vq(vs, i);
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1368 vhost_work_flush(&vs->dev, &vs->vs_completion_work);
a6c9af87363c5e9 drivers/vhost/tcm_vhost.c Asias He 2013-04-25 1369 vhost_work_flush(&vs->dev, &vs->vs_event_work);
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1370
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1371 /* Wait for all reqs issued before the flush to be finished */
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1372 for (i = 0; i < VHOST_SCSI_MAX_VQ; i++)
f2f0173d6a95fa6 drivers/vhost/tcm_vhost.c Asias He 2013-04-27 1373 wait_for_completion(&old_inflight[i]->comp);
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 @1374 }
4f7f46d32c98750 drivers/vhost/tcm_vhost.c Asias He 2013-04-03 1375
:::::: The code at line 1374 was first introduced by commit
:::::: 4f7f46d32c9875004fae1d57ae3c02cc2e6cd6a3 tcm_vhost: Use vq->private_data to indicate if the endpoint is setup
:::::: TO: Asias He <asias@...hat.com>
:::::: CC: Nicholas Bellinger <nab@...ux-iscsi.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" (29261 bytes)
Powered by blists - more mailing lists