Skip to contentSkip to conversation

ASoC: Fix compile error if CONFIG_DEBUG_FS is not configured

PATCH Applied Axel Lin 4 participants 4 messages Nov 9, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: Fix compile error if CONFIG_DEBUG_FS is not configured

Add soc_init_card_debugfs and soc_cleanup_card_debugfs functions to fix below error.

CC sound/soc/soc-core.o
sound/soc/soc-core.c: In function 'soc_probe':
sound/soc/soc-core.c:1689: error: implicit declaration of function 'soc_init_card_debugfs' sound/soc/soc-core.c: In function 'soc_remove':
sound/soc/soc-core.c:1718: error: implicit declaration of function 'soc_cleanup_card_debugfs' make[2]: *** [sound/soc/soc-core.o] Error 1
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2

---
 sound/soc/soc-core.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
sound/soc/soc-core.c +8 -0
index f030521..c18ce1d 100644
@@ -401,6 +401,14 @@ static inline void soc_init_codec_debugfs(struct snd_soc_codec *codec)
 static inline void soc_cleanup_codec_debugfs(struct snd_soc_codec *codec)
 {
 }
+
+static inline void soc_init_card_debugfs(struct snd_soc_card *card)
+{
+}
+
+static inline void soc_cleanup_card_debugfs(struct snd_soc_card *card)
+{
+}
 #endif
 
 #ifdef CONFIG_SND_SOC_AC97_BUS
Signature · 1 line
1.7.2
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Axel Lin

Add soc_init_card_debugfs and soc_cleanup_card_debugfs functions to fix below error.

CC sound/soc/soc-core.o
sound/soc/soc-core.c: In function 'soc_probe':
sound/soc/soc-core.c:1689: error: implicit declaration of function 'soc_init_card_debugfs' sound/soc/soc-core.c: In function 'soc_remove':
sound/soc/soc-core.c:1718: error: implicit declaration of function 'soc_cleanup_card_debugfs' make[2]: *** [sound/soc/soc-core.o] Error 1
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2

Quoted 1 line
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
Acked-by
#2 lore raw
Quoted 12 lines · On Tue, 09 Nov 2010 10:01:06 +0000 Liam Girdwood <[email protected]> wrote:
Quoted 11 lines · Axel Lin

Add soc_init_card_debugfs and soc_cleanup_card_debugfs functions to fix below error.

CC sound/soc/soc-core.o
sound/soc/soc-core.c: In function 'soc_probe':
sound/soc/soc-core.c:1689: error: implicit declaration of function 'soc_init_card_debugfs' sound/soc/soc-core.c: In function 'soc_remove':
sound/soc/soc-core.c:1718: error: implicit declaration of function 'soc_cleanup_card_debugfs' make[2]: *** [sound/soc/soc-core.o] Error 1
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2

Quoted 4 lines
Quoted 1 line

Oops...

Applied
#3 lore raw
In reply to Axel Lin
Quoted 2 lines · Axel Lin

Add soc_init_card_debugfs and soc_cleanup_card_debugfs functions to fix below error.

Applied, thanks.