linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 2245/5886] drivers/net/dsa/qca8k.c:795:9: error: implicit declaration of function 'devm_of_mdiobus_register'
@ 2021-05-28 20:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-28 20:30 UTC (permalink / raw)
  To: Ansuel Smith; +Cc: kbuild-all, clang-built-linux, Linux Memory Management List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-28 20:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28 20:30 [linux-next:master 2245/5886] drivers/net/dsa/qca8k.c:795:9: error: implicit declaration of function 'devm_of_mdiobus_register' kernel test robot

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