Re: ERROR: modpost: "__spi_register_driver" [sound/soc/codecs/snd-soc-cs35l56-spi.ko] undefined!

From: Pierre-Louis Bossart
Date: Wed May 29 2024 - 11:04:29 EST




On 5/29/24 00:23, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: e0cce98fe279b64f4a7d81b7f5c3a23d80b92fbc
> commit: b831b4dca48dbe0f1f7705b44460dd9ca7f2f940 ASoC: intel: sof_sdw: Add support for cs42l43-cs35l56 sidecar amps
> date: 4 weeks ago
> config: loongarch-randconfig-r006-20230403 (https://download.01.org/0day-ci/archive/20240529/202405291344.wWCOfrZR-lkp@xxxxxxxxx/config)
> compiler: loongarch64-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240529/202405291344.wWCOfrZR-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202405291344.wWCOfrZR-lkp@xxxxxxxxx/

..

>>> ERROR: modpost: "__spi_register_driver" [sound/soc/codecs/snd-soc-cs35l56-spi.ko] undefined!
>>> ERROR: modpost: "__devm_regmap_init_spi" [sound/soc/codecs/snd-soc-cs35l56-spi.ko] undefined!
>
> Kconfig warnings: (for reference only)
> WARNING: unmet direct dependencies detected for SND_SOC_CS35L56_SPI
> Depends on [n]: SOUND [=m] && SND [=m] && SND_SOC [=m] && SPI_MASTER [=n] && (SOUNDWIRE [=m] || !SOUNDWIRE [=m])
> Selected by [m]:
> - SND_SOC_INTEL_SOUNDWIRE_SOF_MACH [=m] && SOUND [=m] && SND [=m] && SND_SOC [=m] && SND_SOC_INTEL_MACH [=y] && SND_SOC_SOF_INTEL_SOUNDWIRE [=m] && I2C [=y] && ACPI [=y] && (MFD_INTEL_LPSS [=n] || COMPILE_TEST [=y]) && (SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES [=n] || COMPILE_TEST [=y]) && SOUNDWIRE [=m]
>

should be fixed by

[1/1] ASoC: Intel: sof-sdw: fix missing SPI_MASTER dependency
commit: b062938fd9afec844c50571fddd8d81623a60ee1