Re: [PATCH net-next v9 03/10] bng_en: add ethtool link settings, get_link, and nway_reset
From: kernel test robot
Date: Wed Mar 25 2026 - 06:47:08 EST
Hi Bhargava,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Bhargava-Marreddy/bng_en-add-per-PF-workqueue-timer-and-slow-path-task/20260325-121249
base: net-next/main
patch link: https://lore.kernel.org/r/20260324200740.346029-4-bhargava.marreddy%40broadcom.com
patch subject: [PATCH net-next v9 03/10] bng_en: add ethtool link settings, get_link, and nway_reset
config: i386-randconfig-141-20260325 (https://download.01.org/0day-ci/archive/20260325/202603251832.dBi1052h-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9004-gb810ac53
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260325/202603251832.dBi1052h-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603251832.dBi1052h-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/broadcom/bnge/bnge_link.c: In function 'bnge_set_link_ksettings':
>> drivers/net/ethernet/broadcom/bnge/bnge_link.c:1220:32: warning: variable 'link_info' set but not used [-Wunused-but-set-variable]
1220 | struct bnge_link_info *link_info;
| ^~~~~~~~~
vim +/link_info +1220 drivers/net/ethernet/broadcom/bnge/bnge_link.c
1212
1213 int bnge_set_link_ksettings(struct net_device *dev,
1214 const struct ethtool_link_ksettings *lk_ksettings)
1215 {
1216 const struct ethtool_link_settings *base = &lk_ksettings->base;
1217 struct bnge_ethtool_link_info old_elink_info;
1218 struct bnge_ethtool_link_info *elink_info;
1219 struct bnge_net *bn = netdev_priv(dev);
> 1220 struct bnge_link_info *link_info;
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki