Skip to contentSkip to conversation

SOUND/SPI: Fix "clk_round_rate" undefined reference error.

PATCH In review Majunath Goudar 2 participants 2 messages Oct 8, 2013 – Oct 22, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SOUND/SPI: Fix "clk_round_rate" undefined reference error.

This patch adds a COMMON_CLK dependency to configure the SND_AT73C213 for Atmel AT73C213 DAC driver. Without this patch, build system can lead to build failure. This was observed during randconfig testing, in which SND_AT73C213 was enabled w/o COMMON_CLK being enabled. leading to the following error:

sound/built-in.o: In function `snd_at73c213_probe':
:(.text+0x328c4): undefined reference to `clk_round_rate'
make: *** [vmlinux] Error 1

Cc Dmitry Torokhov <[email protected]>
Cc linux-input at vger.kernel.org
Cc linux-kernel at vger.kernel.org
---
 sound/spi/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/spi/Kconfig +1 -1
index e6485be..798d1ee 100644
@@ -11,7 +11,7 @@ if SND_SPI
 
 config SND_AT73C213
 	tristate "Atmel AT73C213 DAC driver"
-	depends on ATMEL_SSC
+	depends on ATMEL_SSC && COMMON_CLK
 	select SND_PCM
 	help
 	  Say Y here if you want to use the Atmel AT73C213 external DAC. This
Signature · 1 line
1.7.9.5
#1 lore raw

Hi Majunath,

Quoted 23 lines · Majunath Goudar

This patch adds a COMMON_CLK dependency to configure the SND_AT73C213 for Atmel AT73C213 DAC driver. Without this patch, build system can lead to build failure. This was observed during randconfig testing, in which SND_AT73C213 was enabled w/o COMMON_CLK being enabled. leading to the following error:

sound/built-in.o: In function `snd_at73c213_probe':
:(.text+0x328c4): undefined reference to `clk_round_rate'
make: *** [vmlinux] Error 1

Cc Dmitry Torokhov <[email protected]>
Cc linux-input at vger.kernel.org
Cc linux-kernel at vger.kernel.org
---
 sound/spi/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/spi/Kconfig +0 -0
index e6485be..798d1ee 100644

sound/spi/Kconfig if SND_SPI · line 14

Quoted 5 lines
sound/spi/Kconfig +1 -1
@@ -11,7 +11,7 @@ if SND_SPI
 
 config SND_AT73C213
 	tristate "Atmel AT73C213 DAC driver"
-	depends on ATMEL_SSC
+	depends on ATMEL_SSC && COMMON_CLK

I do not see clk_round_rate() being protected by CONFIG_COMMON_CLK so it looks to me that ATMEL_SSC is at fault here.

Thanks.

Signature · 1 line
Dmitry