Hi Florian,

[auto build test WARNING on net-next/master]
[also build test WARNING on next-20161111]
[cannot apply to v4.9-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/Florian-Fainelli/net-stmmac-Add-support-for-ethtool-nway_reset/20161114-053015
config: x86_64-kexec (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c: In function 
'stmmac_nway_reset':
>> drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:867:22: warning: unused 
>> variable 'priv' [-Wunused-variable]
     struct stmmac_priv *priv = netdev_priv(dev);
                         ^~~~

vim +/priv +867 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c

   851          int ret = 0;
   852  
   853          switch (tuna->id) {
   854          case ETHTOOL_RX_COPYBREAK:
   855                  priv->rx_copybreak = *(u32 *)data;
   856                  break;
   857          default:
   858                  ret = -EINVAL;
   859                  break;
   860          }
   861  
   862          return ret;
   863  }
   864  
   865  static int stmmac_nway_reset(struct net_device *dev)
   866  {
 > 867          struct stmmac_priv *priv = netdev_priv(dev);
   868  
   869          if (!dev->phydev)
   870                  return -ENODEV;
   871  
   872          return genphy_restart_aneg(dev->phydev);
   873  }
   874  
   875  static const struct ethtool_ops stmmac_ethtool_ops = {

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

Attachment: .config.gz
Description: application/gzip

Reply via email to