From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [frank-w-bpi-r2-4.14:5.15-r2pro 33/44] drivers/net/phy/rtl8366_smi.c:257:5: warning: no previous prototype for function '__rtl8366_mdio_read_reg'
Date: Mon, 04 Oct 2021 03:25:19 +0800 [thread overview]
Message-ID: <202110040311.fu54OQTg-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4348 bytes --]
tree: https://github.com/frank-w/BPI-R2-4.14 5.15-r2pro
head: 979af5cddf764f04ffac8b9b9b4ab8aa7958c420
commit: f22eb897c1dcf9012fdae439c0fac0821ace6274 [33/44] rtl8367: fix most unresolved symbols in openwrt driver
config: arm64-buildonly-randconfig-r004-20211004 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 57d9adefa04dc65096b8ba3e5763c15305676f73)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/frank-w/BPI-R2-4.14/commit/f22eb897c1dcf9012fdae439c0fac0821ace6274
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.15-r2pro
git checkout f22eb897c1dcf9012fdae439c0fac0821ace6274
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/phy/rtl8366_smi.c:257:5: warning: no previous prototype for function '__rtl8366_mdio_read_reg' [-Wmissing-prototypes]
int __rtl8366_mdio_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data)
^
drivers/net/phy/rtl8366_smi.c:257:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __rtl8366_mdio_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data)
^
static
>> drivers/net/phy/rtl8366_smi.c:1533:5: warning: no previous prototype for function 'rtl8366_smi_probe_of' [-Wmissing-prototypes]
int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8366_smi *smi)
^
drivers/net/phy/rtl8366_smi.c:1533:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8366_smi *smi)
^
static
>> drivers/net/phy/rtl8366_smi.c:1580:5: warning: no previous prototype for function 'rtl8366_smi_probe_plat' [-Wmissing-prototypes]
int rtl8366_smi_probe_plat(struct platform_device *pdev, struct rtl8366_smi *smi)
^
drivers/net/phy/rtl8366_smi.c:1580:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int rtl8366_smi_probe_plat(struct platform_device *pdev, struct rtl8366_smi *smi)
^
static
3 warnings generated.
vim +/__rtl8366_mdio_read_reg +257 drivers/net/phy/rtl8366_smi.c
256
> 257 int __rtl8366_mdio_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data)
258 {
259 u32 phy_id = MDC_REALTEK_PHY_ADDR;
260 struct mii_bus *mbus = smi->ext_mbus;
261
262 BUG_ON(in_interrupt());
263
264 mutex_lock(&mbus->mdio_lock);
265 /* Write Start command to register 29 */
266 mbus->write(mbus, phy_id, MDC_MDIO_START_REG, MDC_MDIO_START_OP);
267
268 /* Write address control code to register 31 */
269 mbus->write(mbus, phy_id, MDC_MDIO_CTRL0_REG, MDC_MDIO_ADDR_OP);
270
271 /* Write Start command to register 29 */
272 mbus->write(mbus, phy_id, MDC_MDIO_START_REG, MDC_MDIO_START_OP);
273
274 /* Write address to register 23 */
275 mbus->write(mbus, phy_id, MDC_MDIO_ADDRESS_REG, addr);
276
277 /* Write Start command to register 29 */
278 mbus->write(mbus, phy_id, MDC_MDIO_START_REG, MDC_MDIO_START_OP);
279
280 /* Write read control code to register 21 */
281 mbus->write(mbus, phy_id, MDC_MDIO_CTRL1_REG, MDC_MDIO_READ_OP);
282
283 /* Write Start command to register 29 */
284 mbus->write(smi->ext_mbus, phy_id, MDC_MDIO_START_REG, MDC_MDIO_START_OP);
285
286 /* Read data from register 25 */
287 *data = mbus->read(mbus, phy_id, MDC_MDIO_DATA_READ_REG);
288
289 mutex_unlock(&mbus->mdio_lock);
290
291 return 0;
292 }
293
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39553 bytes --]
reply other threads:[~2021-10-03 19:25 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=202110040311.fu54OQTg-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.