Skip to contentSkip to conversation

ASoC: fix compile breakage - add a missing header include

PATCH In review Guennadi Liakhovetski 3 participants 6 messages Jan 19, 2010

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

PATCH 1/1 ASoC: fix compile breakage - add a missing header include

---

It might well have been reported and / or fixed in some trees, sorry for the noise, if that's the case.

 include/sound/soc-dai.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/sound/soc-dai.h +2 -0
index ca24e7f..061f16d 100644
@@ -16,6 +16,8 @@
 
 #include <linux/list.h>
 
+#include <sound/soc.h>
+
 struct snd_pcm_substream;
 
 /*
Signature · 1 line
1.6.2.4
#1 lore raw

At Tue, 19 Jan 2010 08:39:05 +0100 (CET),

Quoted 6 lines · Guennadi Liakhovetski

---

It might well have been reported and / or fixed in some trees, sorry for the noise, if that's the case.

The addition is OK, but could you give compile error messages? I'm asking it because no error happened in my build tests.

thanks,

Takashi

Quoted 20 lines
 include/sound/soc-dai.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/sound/soc-dai.h +2 -0
index ca24e7f..061f16d 100644
@@ -16,6 +16,8 @@
 
 #include <linux/list.h>
 
+#include <sound/soc.h>
+
 struct snd_pcm_substream;
 
 /*
Signature · 1 line
1.6.2.4
#2 lore raw
Quoted 11 lines · Takashi Iwai

At Tue, 19 Jan 2010 08:39:05 +0100 (CET),

Quoted 6 lines · Guennadi Liakhovetski

---

It might well have been reported and / or fixed in some trees, sorry for the noise, if that's the case.

The addition is OK, but could you give compile error messages? I'm asking it because no error happened in my build tests.

Sure:

In file included from sound/soc/sh/siu_pcm.c:33:
include/sound/soc-dai.h:211: error: field 'capture' has incomplete type include/sound/soc-dai.h:212: error: field 'playback' has incomplete type sound/soc/sh/siu_pcm.c:710: error: variable 'siu_platform' has initializer but incomplete type sound/soc/sh/siu_pcm.c:711: error: unknown field 'name' specified in initializer sound/soc/sh/siu_pcm.c:711: warning: excess elements in struct initializer sound/soc/sh/siu_pcm.c:711: warning: (near initialization for 'siu_platform') sound/soc/sh/siu_pcm.c:712: error: unknown field 'pcm_ops' specified in initializer sound/soc/sh/siu_pcm.c:712: warning: excess elements in struct initializer sound/soc/sh/siu_pcm.c:712: warning: (near initialization for 'siu_platform') sound/soc/sh/siu_pcm.c:713: error: unknown field 'pcm_new' specified in initializer sound/soc/sh/siu_pcm.c:713: warning: excess elements in struct initializer sound/soc/sh/siu_pcm.c:713: warning: (near initialization for 'siu_platform') sound/soc/sh/siu_pcm.c:714: error: unknown field 'pcm_free' specified in initializer sound/soc/sh/siu_pcm.c:714: warning: excess elements in struct initializer sound/soc/sh/siu_pcm.c:714: warning: (near initialization for 'siu_platform') make[3]: *** [sound/soc/sh/siu_pcm.o] Error 1
make[2]: *** [sound/soc/sh] Error 2
make[2]: *** Waiting for unfinished jobs....

Thanks
Guennadi

Quoted 18 lines

thanks,

Takashi

Quoted 12 lines
 include/sound/soc-dai.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/sound/soc-dai.h +0 -0
index ca24e7f..061f16d 100644
@@ -16,6 +16,8 @@
 
 #include <linux/list.h>
 
Quoted 9 lines
Quoted 8 lines
include/sound/soc-dai.h +2 -0
+#include <sound/soc.h>
+
 struct snd_pcm_substream;
 
 /*
Signature · 1 line
1.6.2.4

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#3 lore raw
In reply to Takashi Iwai
Quoted 2 lines · Takashi Iwai

The addition is OK, but could you give compile error messages? I'm asking it because no error happened in my build tests.

Ditto, and please also remember to CC maintainers on patches.

#4 lore raw
Quoted 6 lines · Mark Brown
Quoted 2 lines · Takashi Iwai

The addition is OK, but could you give compile error messages? I'm asking it because no error happened in my build tests.

Ditto, and please also remember to CC maintainers on patches.

Right, sorry, took slightly wrong maintainers. As for the build error - see my earlier post in this thread.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/