lkml.org 
[lkml]   [2021]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: ld.lld: error: undefined symbol: __devm_regmap_init_spi
From
Date
On 11/5/21 7:43 AM, kernel test robot wrote:
> tree: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=04%7C01%7CVijendar.Mukunda%40amd.com%7C30b2f5819d7c4d950b2c08d9a001da9e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637716754948769498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=yAa9UXhBHt902ARvfVXW6cJVYEe9en9jlEba6yVnmVo%3D&reserved=0 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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fllvm%2Fllvm-project&data=04%7C01%7CVijendar.Mukunda%40amd.com%7C30b2f5819d7c4d950b2c08d9a001da9e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637716754948769498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=nLB6CHKLCnmnMEI89CJJIYWRcE0w7d4r5D1hRfdFd6M%3D&reserved=0 264d3b6d4e08401c5b50a85bd76e80b3461d77e6)
> reproduce (this is a W=1 build):
> wget https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fintel%2Flkp-tests%2Fmaster%2Fsbin%2Fmake.cross&data=04%7C01%7CVijendar.Mukunda%40amd.com%7C30b2f5819d7c4d950b2c08d9a001da9e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637716754948769498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=norSmlMW7Enht9P6qvvAhJCcd8jxUjsgKYgK2kNKJAk%3D&reserved=0 -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2Fcommit%2F%3Fid%3D96792fdd77cd19fcf2368e7c19bb8b78557ae425&data=04%7C01%7CVijendar.Mukunda%40amd.com%7C30b2f5819d7c4d950b2c08d9a001da9e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637716754948769498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ZoY6kD%2BhGMc1jGMK0Ro9BwhRUcNATHK%2BzECc%2FwQ62go%3D&reserved=0
> git remote add linus https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=04%7C01%7CVijendar.Mukunda%40amd.com%7C30b2f5819d7c4d950b2c08d9a001da9e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637716754948769498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=yAa9UXhBHt902ARvfVXW6cJVYEe9en9jlEba6yVnmVo%3D&reserved=0
> 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@intel.com>
>
> 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
>
Fix was provided by Arnd Bergmann. Below is the patch title.
ASoC: amd: vangogh: add SPI dependency.

Still upstream review is pending.

Thanks,
Vijendar

> 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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.01.org%2Fhyperkitty%2Flist%2Fkbuild-all%40lists.01.org&amp;data=04%7C01%7CVijendar.Mukunda%40amd.com%7C30b2f5819d7c4d950b2c08d9a001da9e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637716754948769498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=CmJMchAysPCo54Ryf1Lo1fmFLlI5%2BsBUrXG5TKVxoMA%3D&amp;reserved=0
>

\
 
 \ /
  Last update: 2021-11-16 08:07    [W:0.043 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site