* [frank-w-bpi-r2-4.14:7.1-rc 166/166] drivers/phy/mediatek/phy-mtk-xfi-tphy.c:75:6: warning: no previous prototype for function 'mtk_xfi_tphy_valid_ctle'
@ 2026-06-22 23:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-22 23:13 UTC (permalink / raw)
To: Frank Wunderlich; +Cc: oe-kbuild-all
tree: https://github.com/frank-w/BPI-R2-4.14 7.1-rc
head: c95b3b76f17fc39ff9ed52ee3e3f0bccc707f586
commit: 93d09f4f4b72a6b829135dfad3eac1c1684ccbe6 [166/166] phy: mtk-xfi: add mtk_xfi_tphy_valid_ctle for use in usxgmii driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260623/202606230741.zHCuAWae-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project e19d1f51a2c80b63cd8ca95bcc757b7077112808)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260623/202606230741.zHCuAWae-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606230741.zHCuAWae-lkp@intel.com/
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-22 23:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-22 23:13 [frank-w-bpi-r2-4.14:7.1-rc 166/166] drivers/phy/mediatek/phy-mtk-xfi-tphy.c:75:6: warning: no previous prototype for function 'mtk_xfi_tphy_valid_ctle' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.