All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: kbuild-all@lists.01.org, xen-devel@lists.xenproject.org,
	Juergen Gross <jgross@suse.com>
Subject: [xen-tip:linux-next 7/9] drivers/net/xen-netback/netback.c:1334:17: warning: variable 'ret' set but not used
Date: Wed, 17 Feb 2021 04:32:23 +0800	[thread overview]
Message-ID: <202102170412.vJgSEw1F-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3595 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next
head:   871997bc9e423f05c7da7c9178e62dde5df2a7f8
commit: 3194a1746e8aabe86075fd3c5e7cf1f4632d7f16 [7/9] xen-netback: don't "handle" error by BUG()
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/xen/tip.git/commit/?id=3194a1746e8aabe86075fd3c5e7cf1f4632d7f16
        git remote add xen-tip https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git
        git fetch --no-tags xen-tip linux-next
        git checkout 3194a1746e8aabe86075fd3c5e7cf1f4632d7f16
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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/net/xen-netback/netback.c: In function 'xenvif_tx_action':
>> drivers/net/xen-netback/netback.c:1334:17: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    1334 |  int work_done, ret;
         |                 ^~~


vim +/ret +1334 drivers/net/xen-netback/netback.c

3e2234b3149f66 Zoltan Kiss  2014-03-06  1328  
f53c3fe8dad725 Zoltan Kiss  2014-03-06  1329  
f942dc2552b8bf Ian Campbell 2011-03-15  1330  /* Called after netfront has transmitted */
e9ce7cb6b10740 Wei Liu      2014-06-04  1331  int xenvif_tx_action(struct xenvif_queue *queue, int budget)
f942dc2552b8bf Ian Campbell 2011-03-15  1332  {
bdab82759b8e36 Zoltan Kiss  2014-04-02  1333  	unsigned nr_mops, nr_cops = 0;
f53c3fe8dad725 Zoltan Kiss  2014-03-06 @1334  	int work_done, ret;
b3f980bd827e6e Wei Liu      2013-08-26  1335  
e9ce7cb6b10740 Wei Liu      2014-06-04  1336  	if (unlikely(!tx_work_todo(queue)))
b3f980bd827e6e Wei Liu      2013-08-26  1337  		return 0;
f942dc2552b8bf Ian Campbell 2011-03-15  1338  
e9ce7cb6b10740 Wei Liu      2014-06-04  1339  	xenvif_tx_build_gops(queue, budget, &nr_cops, &nr_mops);
f942dc2552b8bf Ian Campbell 2011-03-15  1340  
bdab82759b8e36 Zoltan Kiss  2014-04-02  1341  	if (nr_cops == 0)
b3f980bd827e6e Wei Liu      2013-08-26  1342  		return 0;
f942dc2552b8bf Ian Campbell 2011-03-15  1343  
e9ce7cb6b10740 Wei Liu      2014-06-04  1344  	gnttab_batch_copy(queue->tx_copy_ops, nr_cops);
3194a1746e8aab Jan Beulich  2021-02-15  1345  	if (nr_mops != 0)
e9ce7cb6b10740 Wei Liu      2014-06-04  1346  		ret = gnttab_map_refs(queue->tx_map_ops,
f53c3fe8dad725 Zoltan Kiss  2014-03-06  1347  				      NULL,
e9ce7cb6b10740 Wei Liu      2014-06-04  1348  				      queue->pages_to_map,
9074ce24932186 Zoltan Kiss  2014-04-02  1349  				      nr_mops);
f942dc2552b8bf Ian Campbell 2011-03-15  1350  
e9ce7cb6b10740 Wei Liu      2014-06-04  1351  	work_done = xenvif_tx_submit(queue);
b3f980bd827e6e Wei Liu      2013-08-26  1352  
b3f980bd827e6e Wei Liu      2013-08-26  1353  	return work_done;
f942dc2552b8bf Ian Campbell 2011-03-15  1354  }
f942dc2552b8bf Ian Campbell 2011-03-15  1355  

:::::: The code at line 1334 was first introduced by commit
:::::: f53c3fe8dad725b014e9c7682720d8e3e2a8a5b3 xen-netback: Introduce TX grant mapping

:::::: TO: Zoltan Kiss <zoltan.kiss@citrix.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
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: 76448 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [xen-tip:linux-next 7/9] drivers/net/xen-netback/netback.c:1334:17: warning: variable 'ret' set but not used
Date: Wed, 17 Feb 2021 04:32:23 +0800	[thread overview]
Message-ID: <202102170412.vJgSEw1F-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3663 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next
head:   871997bc9e423f05c7da7c9178e62dde5df2a7f8
commit: 3194a1746e8aabe86075fd3c5e7cf1f4632d7f16 [7/9] xen-netback: don't "handle" error by BUG()
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/xen/tip.git/commit/?id=3194a1746e8aabe86075fd3c5e7cf1f4632d7f16
        git remote add xen-tip https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git
        git fetch --no-tags xen-tip linux-next
        git checkout 3194a1746e8aabe86075fd3c5e7cf1f4632d7f16
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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/net/xen-netback/netback.c: In function 'xenvif_tx_action':
>> drivers/net/xen-netback/netback.c:1334:17: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    1334 |  int work_done, ret;
         |                 ^~~


vim +/ret +1334 drivers/net/xen-netback/netback.c

3e2234b3149f66 Zoltan Kiss  2014-03-06  1328  
f53c3fe8dad725 Zoltan Kiss  2014-03-06  1329  
f942dc2552b8bf Ian Campbell 2011-03-15  1330  /* Called after netfront has transmitted */
e9ce7cb6b10740 Wei Liu      2014-06-04  1331  int xenvif_tx_action(struct xenvif_queue *queue, int budget)
f942dc2552b8bf Ian Campbell 2011-03-15  1332  {
bdab82759b8e36 Zoltan Kiss  2014-04-02  1333  	unsigned nr_mops, nr_cops = 0;
f53c3fe8dad725 Zoltan Kiss  2014-03-06 @1334  	int work_done, ret;
b3f980bd827e6e Wei Liu      2013-08-26  1335  
e9ce7cb6b10740 Wei Liu      2014-06-04  1336  	if (unlikely(!tx_work_todo(queue)))
b3f980bd827e6e Wei Liu      2013-08-26  1337  		return 0;
f942dc2552b8bf Ian Campbell 2011-03-15  1338  
e9ce7cb6b10740 Wei Liu      2014-06-04  1339  	xenvif_tx_build_gops(queue, budget, &nr_cops, &nr_mops);
f942dc2552b8bf Ian Campbell 2011-03-15  1340  
bdab82759b8e36 Zoltan Kiss  2014-04-02  1341  	if (nr_cops == 0)
b3f980bd827e6e Wei Liu      2013-08-26  1342  		return 0;
f942dc2552b8bf Ian Campbell 2011-03-15  1343  
e9ce7cb6b10740 Wei Liu      2014-06-04  1344  	gnttab_batch_copy(queue->tx_copy_ops, nr_cops);
3194a1746e8aab Jan Beulich  2021-02-15  1345  	if (nr_mops != 0)
e9ce7cb6b10740 Wei Liu      2014-06-04  1346  		ret = gnttab_map_refs(queue->tx_map_ops,
f53c3fe8dad725 Zoltan Kiss  2014-03-06  1347  				      NULL,
e9ce7cb6b10740 Wei Liu      2014-06-04  1348  				      queue->pages_to_map,
9074ce24932186 Zoltan Kiss  2014-04-02  1349  				      nr_mops);
f942dc2552b8bf Ian Campbell 2011-03-15  1350  
e9ce7cb6b10740 Wei Liu      2014-06-04  1351  	work_done = xenvif_tx_submit(queue);
b3f980bd827e6e Wei Liu      2013-08-26  1352  
b3f980bd827e6e Wei Liu      2013-08-26  1353  	return work_done;
f942dc2552b8bf Ian Campbell 2011-03-15  1354  }
f942dc2552b8bf Ian Campbell 2011-03-15  1355  

:::::: The code at line 1334 was first introduced by commit
:::::: f53c3fe8dad725b014e9c7682720d8e3e2a8a5b3 xen-netback: Introduce TX grant mapping

:::::: TO: Zoltan Kiss <zoltan.kiss@citrix.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
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: 76448 bytes --]

             reply	other threads:[~2021-02-16 20:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 20:32 kernel test robot [this message]
2021-02-16 20:32 ` [xen-tip:linux-next 7/9] drivers/net/xen-netback/netback.c:1334:17: warning: variable 'ret' set but not used 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=202102170412.vJgSEw1F-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jbeulich@suse.com \
    --cc=jgross@suse.com \
    --cc=kbuild-all@lists.01.org \
    --cc=xen-devel@lists.xenproject.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.