Re: [PATCH] ASoC: soc-core: start rtd->num_components at zero

From: Dennis Gilmore

Date: Thu Nov 12 2026 - 19:36:31 EST


On Thu, Nov 12, 2026 at 5:37 AM Mark Brown <broonie@xxxxxxxxxx> wrote:
>
> > Since the conversion to devm_kzalloc_flex(), the allocator sets the
> > __counted_by() counter num_components to the allocated length
> > (num_cpus + num_codecs + num_platforms). This only happens when the
> > compiler supports __builtin_counted_by_ref() (GCC 16 here). With
> > older compilers the counter stays zero, as before.
>
> This doesn't apply against current code, I think this is an issue that
> was already fixed. Please check and resend if it's still needed.

Looks like it was already fixed in
https://lore.kernel.org/all/20261109102536.357134-1-ghidoliemanuele@xxxxxxxxx/
I missed that when looking.

> --
> Mark Brown <broonie@xxxxxxxxxx>