[PATCH 2/3] net: phy: mediatek: Add mtk phy lib for token ring access & LED/other manipulations
kernel test robot
lkp at intel.com
Thu Apr 25 11:05:41 PDT 2024
Hi Sky,
kernel test robot noticed the following build warnings:
[auto build test WARNING on next-20240424]
[cannot apply to net-next/main net/main linus/master v6.9-rc5 v6.9-rc4 v6.9-rc3 v6.9-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Sky-Huang/net-phy-mediatek-Re-organize-MediaTek-ethernet-phy-drivers/20240425-103608
base: next-20240424
patch link: https://lore.kernel.org/r/20240425023325.15586-3-SkyLake.Huang%40mediatek.com
patch subject: [PATCH 2/3] net: phy: mediatek: Add mtk phy lib for token ring access & LED/other manipulations
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20240426/202404260115.HS8G6ns3-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240426/202404260115.HS8G6ns3-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 <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404260115.HS8G6ns3-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/phy/mediatek/mtk-phy-lib.c:51:13: warning: 'tr_write' defined but not used [-Wunused-function]
51 | static void tr_write(struct phy_device *phydev, u8 ch_addr, u8 node_addr, u8 data_addr, u32 tr_data)
| ^~~~~~~~
>> drivers/net/phy/mediatek/mtk-phy-lib.c:33:13: warning: 'tr_read' defined but not used [-Wunused-function]
33 | static void tr_read(struct phy_device *phydev, u8 ch_addr, u8 node_addr, u8 data_addr,
| ^~~~~~~
vim +/tr_write +51 drivers/net/phy/mediatek/mtk-phy-lib.c
32
> 33 static void tr_read(struct phy_device *phydev, u8 ch_addr, u8 node_addr, u8 data_addr,
34 u16 *tr_high, u16 *tr_low)
35 {
36 phy_select_page(phydev, MTK_PHY_PAGE_EXTENDED_52B5);
37 __tr_read(phydev, ch_addr, node_addr, data_addr, tr_high, tr_low);
38 phy_restore_page(phydev, MTK_PHY_PAGE_STANDARD, 0);
39 }
40
41 static void __tr_write(struct phy_device *phydev, u8 ch_addr, u8 node_addr, u8 data_addr,
42 u32 tr_data)
43 {
44 __phy_write(phydev, 0x11, tr_data & 0xffff);
45 __phy_write(phydev, 0x12, tr_data >> 16);
46 dev_dbg(&phydev->mdio.dev, "tr_high write: 0x%x, tr_low write: 0x%x\n",
47 tr_data >> 16, tr_data & 0xffff);
48 tr_access(phydev, false, ch_addr, node_addr, data_addr);
49 }
50
> 51 static void tr_write(struct phy_device *phydev, u8 ch_addr, u8 node_addr, u8 data_addr, u32 tr_data)
52 {
53 phy_select_page(phydev, MTK_PHY_PAGE_EXTENDED_52B5);
54 __tr_write(phydev, ch_addr, node_addr, data_addr, tr_data);
55 phy_restore_page(phydev, MTK_PHY_PAGE_STANDARD, 0);
56 }
57
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list