[frank-w-bpi-r2-4.14:pr/207 2/2] drivers/phy/mediatek/phy-mtk-xfi-tphy.c:75:6: warning: no previous prototype for function 'mtk_xfi_tphy_valid_ctle'
kernel test robot <[email protected]> Sun, 02 Aug 2026 12:04:02 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/frank-w/BPI-R2-4.14 pr/207 head: a433dbf4c7c757ae352428dbd961d1034aa6856d commit: dc5255ff11eef125710c5e5403a961b3219eb641 [2/2] phy: mtk-xfi: add mtk_xfi_tphy_valid_ctle for use in usxgmii driver config: powerpc64-randconfig-002-20260802 (https://download.01.org/0day-ci/archive/20260802/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project bacfe2950f8218268fcc0a8765644ea0c15f0360) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260802/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): >> drivers/phy/mediatek/phy-mtk-xfi-tphy.c:75:6: warning: no previous prototype for function 'mtk_xfi_tphy_valid_ctle' [-Wmissing-prototypes] 75 | bool mtk_xfi_tphy_valid_ctle(struct phy *phy) | ^ drivers/phy/mediatek/phy-mtk-xfi-tphy.c:75:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 75 | bool mtk_xfi_tphy_valid_ctle(struct phy *phy) | ^ | static 1 warning generated. vim +/mtk_xfi_tphy_valid_ctle +75 drivers/phy/mediatek/phy-mtk-xfi-tphy.c 74 > 75 bool mtk_xfi_tphy_valid_ctle(struct phy *phy) 76 { 77 struct mtk_xfi_tphy *xfi_tphy = phy_get_drvdata(phy); 78 unsigned int val, ctle; 79 80 writel(0x00000404, xfi_tphy->base + 0x00); 81 writel(0x00d600d5, xfi_tphy->base + 0x10); 82 83 val = readl(xfi_tphy->base + 0xd0); 84 85 ctle = FIELD_GET(GENMASK(12, 8), val); 86 if (ctle > 10) 87 return false; 88 89 return true; 90 } 91 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki