From: kernel test robot <lkp@intel.com>
To: Ansuel Smith <ansuelsmth@gmail.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 2245/5886] drivers/net/dsa/qca8k.c:795:9: error: implicit declaration of function 'devm_of_mdiobus_register'
Date: Sat, 29 May 2021 04:30:57 +0800 [thread overview]
Message-ID: <202105290451.VeIhRQer-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2631 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 3e029760e6f8ce90c122c267a039ae73b3f1f5a4
commit: 759bafb8a3226326ca357613bc90acf738f80c32 [2245/5886] net: dsa: qca8k: add support for internal phy and internal mdio
config: x86_64-randconfig-a013-20210528 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6505c630407c5feec818f0bb1c284f9eeebf2071)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=759bafb8a3226326ca357613bc90acf738f80c32
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 759bafb8a3226326ca357613bc90acf738f80c32
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Note: the linux-next/master HEAD 3e029760e6f8ce90c122c267a039ae73b3f1f5a4 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
>> drivers/net/dsa/qca8k.c:795:9: error: implicit declaration of function 'devm_of_mdiobus_register' [-Werror,-Wimplicit-function-declaration]
return devm_of_mdiobus_register(priv->dev, bus, mdio);
^
1 error generated.
vim +/devm_of_mdiobus_register +795 drivers/net/dsa/qca8k.c
771
772 static int
773 qca8k_mdio_register(struct qca8k_priv *priv, struct device_node *mdio)
774 {
775 struct dsa_switch *ds = priv->ds;
776 struct mii_bus *bus;
777
778 bus = devm_mdiobus_alloc(ds->dev);
779
780 if (!bus)
781 return -ENOMEM;
782
783 bus->priv = (void *)priv;
784 bus->name = "qca8k slave mii";
785 bus->read = qca8k_mdio_read;
786 bus->write = qca8k_mdio_write;
787 snprintf(bus->id, MII_BUS_ID_SIZE, "qca8k-%d",
788 ds->index);
789
790 bus->parent = ds->dev;
791 bus->phy_mask = ~ds->phys_mii_mask;
792
793 ds->slave_mii_bus = bus;
794
> 795 return devm_of_mdiobus_register(priv->dev, bus, mdio);
796 }
797
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33491 bytes --]
reply other threads:[~2021-05-28 20:31 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=202105290451.VeIhRQer-lkp@intel.com \
--to=lkp@intel.com \
--cc=ansuelsmth@gmail.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).