Re: [PATCH net-next v4 01/13] net: phy: Introduce ethernet link topology representation
From: kernel test robot <hidden>
Date: 2023-12-18 06:04:22
Also in:
linux-arm-kernel, lkml, oe-kbuild-all
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@intel.com/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@intel.com/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 [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202312181303.RTKMlnzl-lkp@intel.com/ (local) All warnings (new ones prefixed by >>):
quoted
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