mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Paul Burton <paul.burton@mips.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/vhost/scsi.c:1374:1: warning: the frame size of 1056 bytes is larger than 1024 bytes
Date: Sun, 3 Jan 2021 05:03:43 +0800	[thread overview]
Message-ID: <202101030539.cjaFxRwo-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5190 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@intel.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@redhat.com>
:::::: CC: Nicholas Bellinger <nab@linux-iscsi.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: 29261 bytes --]

                 reply	other threads:[~2021-01-02 21:05 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=202101030539.cjaFxRwo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul.burton@mips.com \
    /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®