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 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