Re: [PATCH net-next 2/2] net: phy: mxl-86110: add basic support for MxL86111 PHY
From: kernel test robot
Date: Sat Aug 16 2025 - 04:36:16 EST
Hi Daniel,
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/Daniel-Golle/net-phy-mxl-86110-add-basic-support-for-MxL86111-PHY/20250816-003534
base: net-next/main
patch link: https://lore.kernel.org/r/aJ9hZ6kan3Wlhxkt%40pidgin.makrotopia.org
patch subject: [PATCH net-next 2/2] net: phy: mxl-86110: add basic support for MxL86111 PHY
config: x86_64-buildonly-randconfig-003-20250816 (https://download.01.org/0day-ci/archive/20250816/202508161615.Zd1agg0S-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250816/202508161615.Zd1agg0S-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/202508161615.Zd1agg0S-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
drivers/net/phy/mxl-86110.c: In function 'mxl86111_probe':
>> drivers/net/phy/mxl-86110.c:736:13: warning: variable 'reg_page' set but not used [-Wunused-but-set-variable]
736 | u16 reg_page;
| ^~~~~~~~
vim +/reg_page +736 drivers/net/phy/mxl-86110.c
726
727 /**
728 * mxl86111_probe() - validate bootstrap chip config and set UTP page
729 * @phydev: pointer to the phy_device
730 *
731 * returns 0 or negative errno code
732 */
733 static int mxl86111_probe(struct phy_device *phydev)
734 {
735 int chip_config;
> 736 u16 reg_page;
737 int ret;
738
739 chip_config = mxl86110_read_extended_reg(phydev, MXL86110_EXT_CHIP_CFG_REG);
740 if (chip_config < 0)
741 return chip_config;
742
743 switch (chip_config & MXL86111_EXT_CHIP_CFG_MODE_SEL_MASK) {
744 case MXL86111_EXT_CHIP_CFG_MODE_UTP_TO_SGMII:
745 case MXL86111_EXT_CHIP_CFG_MODE_UTP_TO_RGMII:
746 phydev->port = PORT_TP;
747 reg_page = MXL86111_EXT_SMI_SDS_PHYUTP_SPACE;
748 break;
749 default:
750 return -EOPNOTSUPP;
751 }
752
753 ret = mxl86110_write_extended_reg(phydev,
754 MXL86111_EXT_SMI_SDS_PHY_REG,
755 MXL86111_EXT_SMI_SDS_PHYUTP_SPACE);
756 if (ret < 0)
757 return ret;
758
759 return 0;
760 }
761
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki