From f2454ee65e1cbdada8cc212e17eb1b683fcb9b84 Mon Sep 17 00:00:00 2001 From: Luis Ferreira Date: Sun, 21 Apr 2024 02:38:38 +0100 Subject: [PATCH] sound/soc/bcm: add dependency on OF_DYNAMIC ../sound/soc/bcm/hifiberry_dacplus.c: In function 'snd_rpi_hifiberry_dacplus_probe': ../sound/soc/bcm/hifiberry_dacplus.c:445:25: error: implicit declaration of function 'of_changeset_init' [-Werror=implicit-function-declaration] 445 | of_changeset_init(&ocs); | ^~~~~~~~~~~~~~~~~ ../sound/soc/bcm/hifiberry_dacplus.c:446:31: error: implicit declaration of function 'of_changeset_update_property' [-Werror=implicit-function-declaration] 446 | ret = of_changeset_update_property(&ocs, tpa_node, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] net/ipv4/gre_demux.o CC [M] net/bluetooth/hci_sysfs.o ../sound/soc/bcm/hifiberry_dacplus.c:453:31: error: implicit declaration of function 'of_changeset_apply' [-Werror=implicit-function-declaration] 453 | ret = of_changeset_apply(&ocs); | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[5]: *** [../scripts/Makefile.build:243: sound/soc/bcm/hifiberry_dacplus.o] Error 1 make[4]: *** [../scripts/Makefile.build:481: sound/soc/bcm] Error 2 make[4]: *** Waiting for unfinished jobs.... --- sound/soc/bcm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/bcm/Kconfig b/sound/soc/bcm/Kconfig index d27ba79e1208..04c979f13f59 100644 --- a/sound/soc/bcm/Kconfig +++ b/sound/soc/bcm/Kconfig @@ -49,6 +49,7 @@ config SND_BCM2708_SOC_HIFIBERRY_DAC config SND_BCM2708_SOC_HIFIBERRY_DACPLUS tristate "Support for HifiBerry DAC+" + select OF_DYNAMIC select SND_SOC_PCM512x select SND_SOC_TPA6130A2 select COMMON_CLK_HIFIBERRY_DACPRO @@ -72,6 +73,7 @@ config SND_BCM2708_SOC_HIFIBERRY_DACPLUSADC config SND_BCM2708_SOC_HIFIBERRY_DACPLUSADCPRO tristate "Support for HifiBerry DAC+ADC PRO" + select OF_DYNAMIC select SND_SOC_PCM512x_I2C select SND_SOC_PCM186X_I2C select SND_SOC_TPA6130A2