From: kernel test robot <lkp@intel.com>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Tue, 23 Jun 2026 07:13:07 +0800 [thread overview]
Message-ID: <202606230741.zHCuAWae-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-22 23:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202606230741.zHCuAWae-lkp@intel.com \
--to=lkp@intel.com \
--cc=frank-w@public-files.de \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.