LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Jakub Kicinski <kuba@kernel.org>,
	Matthieu Baerts <matthieu.baerts@tessares.net>
Subject: drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:993:44: warning: variable 'size6' set but not used
Date: Tue, 1 Jun 2021 11:41:38 +0800	[thread overview]
Message-ID: <202106011125.ZEttX1Ul-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c2131f7e73c9e9365613e323d65c7b9e5b910f56
commit: b142083b585c2c03af24cca4d274f797796a4064 mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it
date:   7 months ago
config: ia64-randconfig-r032-20210601 (attached as .config)
compiler: ia64-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=b142083b585c2c03af24cca4d274f797796a4064
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout b142083b585c2c03af24cca4d274f797796a4064
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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/scsi/cxgbi/cxgb4i/cxgb4i.c: In function 'csk_act_open_retry_timer':
>> drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:993:44: warning: variable 'size6' set but not used [-Wunused-but-set-variable]
     993 |  int t4 = is_t4(lldi->adapter_type), size, size6;
         |                                            ^~~~~
   drivers/scsi/cxgbi/cxgb4i/cxgb4i.c: In function 'init_act_open':
   drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:1774:21: warning: variable 'size6' set but not used [-Wunused-but-set-variable]
    1774 |  unsigned int size, size6;
         |                     ^~~~~


vim +/size6 +993 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c

7b36b6e03b0d6c kxie@chelsio.com 2010-08-16   985  
cd07f958e88250 Kees Cook        2017-08-28   986  static void csk_act_open_retry_timer(struct timer_list *t)
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16   987  {
001586a737ee8c Anish Bhatt      2014-10-15   988  	struct sk_buff *skb = NULL;
cd07f958e88250 Kees Cook        2017-08-28   989  	struct cxgbi_sock *csk = from_timer(csk, t, retry_timer);
3bd3e8bf6250f3 Karen Xie        2013-05-29   990  	struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev);
759a0cc5a3e1bc Anish Bhatt      2014-07-17   991  	void (*send_act_open_func)(struct cxgbi_sock *, struct sk_buff *,
759a0cc5a3e1bc Anish Bhatt      2014-07-17   992  				   struct l2t_entry *);
759a0cc5a3e1bc Anish Bhatt      2014-07-17  @993  	int t4 = is_t4(lldi->adapter_type), size, size6;
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16   994  
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16   995  	log_debug(1 << CXGBI_DBG_TOE | 1 << CXGBI_DBG_SOCK,
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16   996  		"csk 0x%p,%u,0x%lx,%u.\n",
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16   997  		csk, csk->state, csk->flags, csk->tid);
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16   998  
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16   999  	cxgbi_sock_get(csk);
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1000  	spin_lock_bh(&csk->lock);
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1001  
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1002  	if (t4) {
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1003  		size = sizeof(struct cpl_act_open_req);
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1004  		size6 = sizeof(struct cpl_act_open_req6);
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1005  	} else {
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1006  		size = sizeof(struct cpl_t5_act_open_req);
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1007  		size6 = sizeof(struct cpl_t5_act_open_req6);
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1008  	}
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1009  
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1010  	if (csk->csk_family == AF_INET) {
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1011  		send_act_open_func = send_act_open_req;
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1012  		skb = alloc_wr(size, 0, GFP_ATOMIC);
f42bb57c61fd21 Anish Bhatt      2014-10-14  1013  #if IS_ENABLED(CONFIG_IPV6)
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1014  	} else {
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1015  		send_act_open_func = send_act_open_req6;
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1016  		skb = alloc_wr(size6, 0, GFP_ATOMIC);
f42bb57c61fd21 Anish Bhatt      2014-10-14  1017  #endif
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1018  	}
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1019  
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1020  	if (!skb)
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1021  		cxgbi_sock_fail_act_open(csk, -ENOMEM);
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1022  	else {
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1023  		skb->sk = (struct sock *)csk;
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1024  		t4_set_arp_err_handler(skb, csk,
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1025  				       cxgbi_sock_act_open_req_arp_failure);
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1026  		send_act_open_func(csk, skb, csk->l2t);
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1027  	}
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1028  
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1029  	spin_unlock_bh(&csk->lock);
7b36b6e03b0d6c kxie@chelsio.com 2010-08-16  1030  	cxgbi_sock_put(csk);
759a0cc5a3e1bc Anish Bhatt      2014-07-17  1031  

:::::: The code at line 993 was first introduced by commit
:::::: 759a0cc5a3e1bc2cc48fa3c0b91bdcad8b8f87d6 cxgb4i: Add ipv6 code to driver, call into libcxgbi ipv6 api

:::::: TO: Anish Bhatt <anish@chelsio.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: 33393 bytes --]

             reply	other threads:[~2021-06-01  3:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01  3:41 kernel test robot [this message]
2021-08-01  0:35 kernel test robot
2021-11-22 21:38 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=202106011125.ZEttX1Ul-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=geert@linux-m68k.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthieu.baerts@tessares.net \
    --subject='Re: drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:993:44: warning: variable '\''size6'\'' set but not used' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).