Skip to contentSkip to conversation

linux-next: build failure after merge of the sound-asoc tree

PATCH Stephen Rothwell 2 participants 3 messages Apr 26, 2022

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

Hi all,

After merging the sound-asoc tree, today's linux-next build (powerpc allyesconfig) failed like this:

sound/soc/intel/avs/path.c: In function 'avs_copier_create':
sound/soc/intel/avs/path.c:186:31: error: invalid use of undefined type 'struct nhlt_specific_cfg'
186 | data = ep_blob->caps;
| ^~
sound/soc/intel/avs/path.c:187:36: error: invalid use of undefined type 'struct nhlt_specific_cfg'
187 | data_size = ep_blob->size;
| ^~
sound/soc/intel/avs/path.c:210:31: error: invalid use of undefined type 'struct nhlt_specific_cfg'
210 | data = ep_blob->caps;
| ^~
sound/soc/intel/avs/path.c:211:36: error: invalid use of undefined type 'struct nhlt_specific_cfg'
211 | data_size = ep_blob->size;
| ^~

Caused by commit

274d79e51875 ("ASoC: Intel: avs: Configure modules according to their type")

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Tue, 26 Apr 2022 17:49:37 +1000
Subject: [PATCH] fixup for "ASoC: Intel: avs: Configure modules according to their type"

---
 sound/soc/intel/avs/path.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/intel/avs/path.c +1 -0
index 3d46dd5e5bc4..6f47ac44de87 100644
@@ -9,6 +9,7 @@
 #include <sound/intel-nhlt.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
+#include <sound/intel-nhlt.h>
 #include "avs.h"
 #include "path.h"
 #include "topology.h"
Signature · 5 lines
2.35.1

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 39 lines · Stephen Rothwell

Hi all,

After merging the sound-asoc tree, today's linux-next build (powerpc allyesconfig) failed like this:

sound/soc/intel/avs/path.c: In function 'avs_copier_create':
sound/soc/intel/avs/path.c:186:31: error: invalid use of undefined type 'struct nhlt_specific_cfg'
186 | data = ep_blob->caps;
| ^~
sound/soc/intel/avs/path.c:187:36: error: invalid use of undefined type 'struct nhlt_specific_cfg'
187 | data_size = ep_blob->size;
| ^~
sound/soc/intel/avs/path.c:210:31: error: invalid use of undefined type 'struct nhlt_specific_cfg'
210 | data = ep_blob->caps;
| ^~
sound/soc/intel/avs/path.c:211:36: error: invalid use of undefined type 'struct nhlt_specific_cfg'
211 | data_size = ep_blob->size;
| ^~

Caused by commit

274d79e51875 ("ASoC: Intel: avs: Configure modules according to their type")

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Tue, 26 Apr 2022 17:49:37 +1000
Subject: [PATCH] fixup for "ASoC: Intel: avs: Configure modules according to their type"

---
  sound/soc/intel/avs/path.c | 1 +
  1 file changed, 1 insertion(+)
sound/soc/intel/avs/path.c +0 -0
index 3d46dd5e5bc4..6f47ac44de87 100644

sound/soc/intel/avs/path.c line 12

Quoted 4 lines
sound/soc/intel/avs/path.c +1 -0
@@ -9,6 +9,7 @@
  #include <sound/intel-nhlt.h>
  #include <sound/pcm_params.h>
  #include <sound/soc.h>
+#include <sound/intel-nhlt.h>

This fix seems weird, as same include is 3 lines earlier?

Quoted 3 lines
sound/soc/intel/avs/path.c +0 -0
  #include "avs.h"
  #include "path.h"
  #include "topology.h"
#2 lore raw

Hi Amadeusz,

Quoted 12 lines · On Tue, 26 Apr 2022 11:01:18 +0200 Amadeusz Sławiński…
Quoted 12 lines

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Tue, 26 Apr 2022 17:49:37 +1000
Subject: [PATCH] fixup for "ASoC: Intel: avs: Configure modules according to their type"

---
  sound/soc/intel/avs/path.c | 1 +
  1 file changed, 1 insertion(+)
Quoted 11 lines

sound/soc/intel/avs/path.c line 12

Quoted 9 lines
sound/soc/intel/avs/path.c +1 -0
index 3d46dd5e5bc4..6f47ac44de87 100644
@@ -9,6 +9,7 @@
  #include <sound/intel-nhlt.h>
  #include <sound/pcm_params.h>
  #include <sound/soc.h>
+#include <sound/intel-nhlt.h>  

This fix seems weird, as same include is 3 lines earlier?

Right. I applied this at the same time as the previous fix which probably stopped this file from being built. The real problem is that the structure is not defined for !CONFIG_ACPI.

So this fix is not needed.

Sorry for the noise.

Signature · 2 lines
Cheers,
Stephen Rothwell