ld.lld: error: undefined symbol: __devm_regmap_init_spi
From: kernel test robot
Date: Thu Nov 04 2021 - 22:13:28 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d4439a1189f93d0ac1eaf0197db8e6b3e197d5c7
commit: 96792fdd77cd19fcf2368e7c19bb8b78557ae425 ASoC: amd: enable vangogh platform machine driver build
date: 3 weeks ago
config: x86_64-randconfig-r002-20211103 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 264d3b6d4e08401c5b50a85bd76e80b3461d77e6)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=96792fdd77cd19fcf2368e7c19bb8b78557ae425
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 96792fdd77cd19fcf2368e7c19bb8b78557ae425
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
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_regmap_init_spi
>>> referenced by cs35l41-spi.c:85 (sound/soc/codecs/cs35l41-spi.c:85)
>>> soc/codecs/cs35l41-spi.o:(cs35l41_spi_probe) in archive sound/built-in.a
--
>> ld.lld: error: undefined symbol: spi_setup
>>> referenced by cs35l41-spi.c:62 (sound/soc/codecs/cs35l41-spi.c:62)
>>> soc/codecs/cs35l41-spi.o:(cs35l41_spi_otp_setup) in archive sound/built-in.a
>>> referenced by cs35l41-spi.c:68 (sound/soc/codecs/cs35l41-spi.c:68)
>>> soc/codecs/cs35l41-spi.o:(cs35l41_spi_otp_setup) in archive sound/built-in.a
--
>> ld.lld: error: undefined symbol: __spi_register_driver
>>> referenced by cs35l41-spi.c:134 (sound/soc/codecs/cs35l41-spi.c:134)
>>> soc/codecs/cs35l41-spi.o:(cs35l41_spi_driver_init) in archive sound/built-in.a
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_SOC_CS35L41_SPI
Depends on SOUND && !UML && SND && SND_SOC && SPI_MASTER
Selected by
- SND_SOC_AMD_VANGOGH_MACH && SOUND && !UML && SND && SND_SOC && SND_SOC_AMD_ACP5x && I2C
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip