ld.lld: error: undefined symbol: devm_mdiobus_alloc_size

From: kernel test robot
Date: Sat Sep 26 2020 - 03:31:23 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7c7ec3226f5f33f9c050d85ec20f18419c622ad6
commit: 1814cff26739de7d02db6193bc620d0a4bdea676 net: phy: add a Kconfig option for mdio_devres
date: 3 months ago
config: x86_64-randconfig-r004-20200925 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a83eb048cb9a75da7a07a9d5318bbdbf54885c87)
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/torvalds/linux.git/commit/?id=1814cff26739de7d02db6193bc620d0a4bdea676
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1814cff26739de7d02db6193bc620d0a4bdea676
# 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@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: devm_mdiobus_alloc_size
>>> referenced by mdio-thunder.c:78 (drivers/net/phy/mdio-thunder.c:78)
>>> net/phy/mdio-thunder.o:(thunder_mdiobus_pci_probe) in archive drivers/built-in.a

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip