Hi, I’m getting an error from the sound module:
MODPOST vmlinux.symvers
MODINFO modules.builtin.modinfo
GEN modules.builtin
LD .tmp_vmlinux.kallsyms1
riscv64-unknown-linux-gnu-ld: sound/soc/starfive/starfive_pwmdac.o: in function `.L0 ':
starfive_pwmdac.c:(.text+0x738): undefined reference to `sf_pwmdac_pcm_push_tx'
riscv64-unknown-linux-gnu-ld: sound/soc/starfive/starfive_pwmdac.o: in function `.L88':
starfive_pwmdac.c:(.text+0xbca): undefined reference to `sf_pwmdac_pcm_register'
make[3]: *** [Makefile:1183: vmlinux] Error 1
make[2]: *** [debian/rules:7: build-arch] Error 2
The cause is the Makefile, which has a line that includes the object file starfive_pwmdac.o which should probably read “ob- …”.
Thus:
diff --git a/sound/soc/starfive/Makefile b/sound/soc/starfive/Makefile
index 85c07592aed6..7427a4380389 100644
--- a/sound/soc/starfive/Makefile
+++ b/sound/soc/starfive/Makefile
@@ -1,7 +1,7 @@
# starfive Platform Support
obj-$(CONFIG_SND_SOC_STARFIVE_PWMDAC) += starfive_pwmdac.o
obj-$(CONFIG_SND_SOC_STARFIVE_PWMDAC_TRANSMITTER) += starfive_pwmdac_transmitter.o
-pwmdac-$(CONFIG_SND_SOC_STARFIVE_PWMDAC_PCM) += starfive_pwmdac_pcm.o
+obj-$(CONFIG_SND_SOC_STARFIVE_PWMDAC_PCM) += starfive_pwmdac_pcm.o
obj-$(CONFIG_SND_SOC_STARFIVE_PDM) += starfive_pdm.o
obj-$(CONFIG_SND_SOC_STARFIVE_TDM) += starfive_tdm.o