Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 6 messages Oct 23, 2025 – Oct 28, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

sound/soc/sdw_utils/soc_sdw_utils.c:316:18: error: 'struct asoc_sdw_codec_info' has no member named 'name_prefix'
316 | .name_prefix = "rt1320",

      |                  ^~~~~~~~~~~

sound/soc/sdw_utils/soc_sdw_utils.c:316:32: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
316 | .name_prefix = "rt1320",
| ^~~~~~~~
sound/soc/sdw_utils/soc_sdw_utils.c:316:32: note: (near initialization for 'codec_info_list[12].version_id') sound/soc/sdw_utils/soc_sdw_utils.c:316:32: error: initializer element is not computable at load time sound/soc/sdw_utils/soc_sdw_utils.c:316:32: note: (near initialization for 'codec_info_list[12].version_id') sound/soc/sdw_utils/soc_sdw_utils.c:564:18: error: 'struct asoc_sdw_codec_info' has no member named 'name_prefix'
564 | .name_prefix = "AMP",

      |                  ^~~~~~~~~~~

sound/soc/sdw_utils/soc_sdw_utils.c:564:32: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
564 | .name_prefix = "AMP",
| ^~~~~
sound/soc/sdw_utils/soc_sdw_utils.c:564:32: note: (near initialization for 'codec_info_list[23].version_id') sound/soc/sdw_utils/soc_sdw_utils.c:564:32: error: initializer element is not computable at load time sound/soc/sdw_utils/soc_sdw_utils.c:564:32: note: (near initialization for 'codec_info_list[23].version_id')

Caused by commits

3293d3d7b088 ("ASoC: sdw_utils: add name_prefix for rt1321 part id") 61eb4112a8fb ("ASoC: soc_sdw_utils: add cs35l57 support")

But something else has changed because 3293d3d7b088 was also in yesterday's linux-next - which did not fail to build.

I have used the sound-asoc-fixes tree from next-20251022 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi all,

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

sound/soc/sdw_utils/soc_sdw_utils.c:316:18: error: 'struct asoc_sdw_codec_info' has no member named 'name_prefix'
316 | .name_prefix = "rt1320",

      |                  ^~~~~~~~~~~

sound/soc/sdw_utils/soc_sdw_utils.c:316:32: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
316 | .name_prefix = "rt1320",
| ^~~~~~~~

And I do x86 allmodconfig builds which should stop something that breaks getting published...

#2 lore raw

Hi Mark,

Quoted 14 lines · On Fri, 24 Oct 2025 00:49:11 +0100 Mark Brown <[email protected]> wrote:
Quoted 11 lines · Stephen Rothwell

Hi all,

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

sound/soc/sdw_utils/soc_sdw_utils.c:316:18: error: 'struct asoc_sdw_codec_info' has no member named 'name_prefix'
316 | .name_prefix = "rt1320",

      |                  ^~~~~~~~~~~

sound/soc/sdw_utils/soc_sdw_utils.c:316:32: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
316 | .name_prefix = "rt1320",
| ^~~~~~~~

Quoted 2 lines

And I do x86 allmodconfig builds which should stop something that breaks getting published...

Yeah, so there must be an interaction with something merged before your tree ... but I couldn't find anything obvious, sorry.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

Hi all,

Quoted 16 lines · On Fri, 24 Oct 2025 12:09:20 +1100 Stephen Rothwell <[email protected]>…
Quoted 14 lines · On Fri, 24 Oct 2025 00:49:11 +0100 Mark Brown <[email protected]> wrote:
Quoted 11 lines · Stephen Rothwell

Hi all,

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

sound/soc/sdw_utils/soc_sdw_utils.c:316:18: error: 'struct asoc_sdw_codec_info' has no member named 'name_prefix'
316 | .name_prefix = "rt1320",

      |                  ^~~~~~~~~~~

sound/soc/sdw_utils/soc_sdw_utils.c:316:32: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
316 | .name_prefix = "rt1320",
| ^~~~~~~~

Quoted 5 lines
Quoted 2 lines

And I do x86 allmodconfig builds which should stop something that breaks getting published...

Yeah, so there must be an interaction with something merged before your tree ... but I couldn't find anything obvious, sorry.

I am still getting this failure. I cannot find anything that would have interacted with this addition of name_prefix. I can only speculate that maybe this file was not built in the past for an x86_64 allmodconfig (i.e. some KCONFIG change) or an update to an include file has messed being committed.

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw

Hi all,

Quoted 21 lines · On Tue, 28 Oct 2025 09:34:11 +1100 Stephen Rothwell <[email protected]>…
Quoted 19 lines · On Fri, 24 Oct 2025 12:09:20 +1100 Stephen Rothwell <[email protected]>…
Quoted 16 lines · On Fri, 24 Oct 2025 00:49:11 +0100 Mark Brown <[email protected]> wrote:
Quoted 11 lines · Stephen Rothwell

Hi all,

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

sound/soc/sdw_utils/soc_sdw_utils.c:316:18: error: 'struct asoc_sdw_codec_info' has no member named 'name_prefix'
316 | .name_prefix = "rt1320",

      |                  ^~~~~~~~~~~

sound/soc/sdw_utils/soc_sdw_utils.c:316:32: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
316 | .name_prefix = "rt1320",
| ^~~~~~~~

And I do x86 allmodconfig builds which should stop something that breaks getting published...

Quoted 8 lines
Quoted 2 lines

Yeah, so there must be an interaction with something merged before your tree ... but I couldn't find anything obvious, sorry.

I am still getting this failure. I cannot find anything that would have interacted with this addition of name_prefix. I can only speculate that maybe this file was not built in the past for an x86_64 allmodconfig (i.e. some KCONFIG change) or an update to an include file has messed being committed.

Found it! There is commit

ea9771390378 ("ASoC: soc_sdw_utils: add name_prefix to asoc_sdw_codec_info struct")

in the sound-asoc tree (which is not merged into linux-next until much later).

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#5 lore raw
Quoted 8 lines · Stephen Rothwell
Quoted 5 lines · On Tue, 28 Oct 2025 09:34:11 +1100 Stephen Rothwell <[email protected]>…

I am still getting this failure. I cannot find anything that would have interacted with this addition of name_prefix. I can only speculate that maybe this file was not built in the past for an x86_64 allmodconfig (i.e. some KCONFIG change) or an update to an include file has messed being committed.

Quoted 6 lines

Found it! There is commit

ea9771390378 ("ASoC: soc_sdw_utils: add name_prefix to asoc_sdw_codec_info struct")

in the sound-asoc tree (which is not merged into linux-next until much later).

Yes, I know that. What was bothering me was why it wasn't showing up in my build tests which normally include allmodconfig. I just realised that I'm still suppressing those tests because mainline failed to build an allmodconfig due to:

/build/stage/linux/drivers/dma/mmp_pdma.c:1188:14: error: shift count >= width o f type [-Werror,-Wshift-count-overflow]
1188 | .dma_mask = DMA_BIT_MASK(64), /* force 64-bit DMA addr capabil
ity */

      |                     ^~~~~~~~~~~~~~~~

/build/stage/linux/include/linux/dma-mapping.h:93:54: note: expanded from macro 'DMA_BIT_MASK'
93 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
| ^ ~~~

and never gets far enough into the build to show anything else. I think that subsequently got fixed in mainline but I didn't merge up yet.