Re: [PATCH net-next v4 01/13] net: phy: Introduce ethernet link topology representation

From: kernel test robot
Date: Mon Dec 18 2023 - 01:04:32 EST


Hi Maxime,

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/Maxime-Chevallier/net-phy-Introduce-ethernet-link-topology-representation/20231216-012641
base: net-next/main
patch link: https://lore.kernel.org/r/20231215171237.1152563-2-maxime.chevallier%40bootlin.com
patch subject: [PATCH net-next v4 01/13] net: phy: Introduce ethernet link topology representation
config: i386-randconfig-054-20231216 (https://download.01.org/0day-ci/archive/20231218/202312181303.RTKMlnzl-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231218/202312181303.RTKMlnzl-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/202312181303.RTKMlnzl-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/net/phy/phy_device.c:269:34: warning: 'phy_get_link_topology' defined but not used [-Wunused-function]
269 | static struct phy_link_topology *phy_get_link_topology(struct phy_device *phydev)
| ^~~~~~~~~~~~~~~~~~~~~


vim +/phy_get_link_topology +269 drivers/net/phy/phy_device.c

268
> 269 static struct phy_link_topology *phy_get_link_topology(struct phy_device *phydev)
270 {
271 if (phydev->attached_dev)
272 return &phydev->attached_dev->link_topo;
273
274 return NULL;
275 }
276

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki