Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: John Allen <jallen@linux.vnet.ibm.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org,
	Thomas Falcon <tlfalcon@linux.vnet.ibm.com>,
	Nathan Fontenot <nfont@linux.vnet.ibm.com>
Subject: Re: [PATCH v2 net-next 2/2] ibmvnic: Fix failover error path for non-fatal resets
Date: Tue, 24 Oct 2017 07:02:55 +0800	[thread overview]
Message-ID: <201710240646.clI6cb9I%fengguang.wu@intel.com> (raw)
In-Reply-To: <0d186152-78b3-fc62-3227-788c314448b0@linux.vnet.ibm.com>

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

Hi John,

[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/John-Allen/ibmvnic-Update-reset-infrastructure-to-support-tunable-parameters/20171024-062007
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/net//ethernet/ibm/ibmvnic.c: In function '__ibmvnic_reset':
>> drivers/net//ethernet/ibm/ibmvnic.c:1620:26: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized]
      adapter->reset_done_rc = rc;
      ~~~~~~~~~~~~~~~~~~~~~~~^~~~

vim +/rc +1620 drivers/net//ethernet/ibm/ibmvnic.c

ed651a108 Nathan Fontenot 2017-05-03  1592  
ed651a108 Nathan Fontenot 2017-05-03  1593  static void __ibmvnic_reset(struct work_struct *work)
ed651a108 Nathan Fontenot 2017-05-03  1594  {
ed651a108 Nathan Fontenot 2017-05-03  1595  	struct ibmvnic_rwi *rwi;
ed651a108 Nathan Fontenot 2017-05-03  1596  	struct ibmvnic_adapter *adapter;
ed651a108 Nathan Fontenot 2017-05-03  1597  	struct net_device *netdev;
ed651a108 Nathan Fontenot 2017-05-03  1598  	u32 reset_state;
ed651a108 Nathan Fontenot 2017-05-03  1599  	int rc;
ed651a108 Nathan Fontenot 2017-05-03  1600  
ed651a108 Nathan Fontenot 2017-05-03  1601  	adapter = container_of(work, struct ibmvnic_adapter, ibmvnic_reset);
ed651a108 Nathan Fontenot 2017-05-03  1602  	netdev = adapter->netdev;
ed651a108 Nathan Fontenot 2017-05-03  1603  
ed651a108 Nathan Fontenot 2017-05-03  1604  	mutex_lock(&adapter->reset_lock);
ed651a108 Nathan Fontenot 2017-05-03  1605  	adapter->resetting = true;
ed651a108 Nathan Fontenot 2017-05-03  1606  	reset_state = adapter->state;
ed651a108 Nathan Fontenot 2017-05-03  1607  
ed651a108 Nathan Fontenot 2017-05-03  1608  	rwi = get_next_rwi(adapter);
ed651a108 Nathan Fontenot 2017-05-03  1609  	while (rwi) {
ed651a108 Nathan Fontenot 2017-05-03  1610  		rc = do_reset(adapter, rwi, reset_state);
ed651a108 Nathan Fontenot 2017-05-03  1611  		kfree(rwi);
73daa92e4 John Allen      2017-10-23  1612  		if (rc && rc != IBMVNIC_INIT_FAILED)
ed651a108 Nathan Fontenot 2017-05-03  1613  			break;
ed651a108 Nathan Fontenot 2017-05-03  1614  
ed651a108 Nathan Fontenot 2017-05-03  1615  		rwi = get_next_rwi(adapter);
ed651a108 Nathan Fontenot 2017-05-03  1616  	}
ed651a108 Nathan Fontenot 2017-05-03  1617  
ce7a66cc8 John Allen      2017-10-23  1618  	if (adapter->wait_for_reset) {
ce7a66cc8 John Allen      2017-10-23  1619  		adapter->wait_for_reset = false;
ce7a66cc8 John Allen      2017-10-23 @1620  		adapter->reset_done_rc = rc;
ce7a66cc8 John Allen      2017-10-23  1621  		complete(&adapter->reset_done);
ce7a66cc8 John Allen      2017-10-23  1622  	}
ce7a66cc8 John Allen      2017-10-23  1623  
ed651a108 Nathan Fontenot 2017-05-03  1624  	if (rc) {
d1cf33d93 Nathan Fontenot 2017-08-08  1625  		netdev_dbg(adapter->netdev, "Reset failed\n");
ed651a108 Nathan Fontenot 2017-05-03  1626  		free_all_rwi(adapter);
6d0af07d5 Wei Yongjun     2017-05-18  1627  		mutex_unlock(&adapter->reset_lock);
ed651a108 Nathan Fontenot 2017-05-03  1628  		return;
ed651a108 Nathan Fontenot 2017-05-03  1629  	}
ed651a108 Nathan Fontenot 2017-05-03  1630  
ed651a108 Nathan Fontenot 2017-05-03  1631  	adapter->resetting = false;
ed651a108 Nathan Fontenot 2017-05-03  1632  	mutex_unlock(&adapter->reset_lock);
ed651a108 Nathan Fontenot 2017-05-03  1633  }
ed651a108 Nathan Fontenot 2017-05-03  1634  

:::::: The code at line 1620 was first introduced by commit
:::::: ce7a66cc8fceb75d2a95e5e68d21c1889821ff08 ibmvnic: Update reset infrastructure to support tunable parameters

:::::: TO: John Allen <jallen@linux.vnet.ibm.com>
:::::: CC: 0day robot <fengguang.wu@intel.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 55120 bytes --]

      reply	other threads:[~2017-10-23 23:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-23 16:30 [PATCH v2 net-next 0/2] ibmvnic: Tunable parameter support John Allen
2017-10-23 16:33 ` [PATCH v2 net-next 1/2] ibmvnic: Update reset infrastructure to support tunable parameters John Allen
2017-10-24 16:04   ` Nathan Fontenot
2017-10-23 16:34 ` [PATCH v2 net-next 2/2] ibmvnic: Fix failover error path for non-fatal resets John Allen
2017-10-23 23:02   ` kbuild test robot [this message]

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=201710240646.clI6cb9I%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=jallen@linux.vnet.ibm.com \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    --cc=nfont@linux.vnet.ibm.com \
    --cc=tlfalcon@linux.vnet.ibm.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