Re: [PATCH] ASoC: soc-core: start rtd->num_components at zero
From: Hans de Goede
Date: Thu Nov 12 2026 - 09:05:25 EST
Hi Mark,
I was about to send a regression bug report for 7.4-rc2 but I first
checked the list to see if a fix was already available and I'm happy
to report that this fixes things for me:
Tested-by: Hans de Goede <johannes.goede@xxxxxxxxxxxxxxxx>
Also the patch looks good to me:
Reviewed-by: Hans de Goede <johannes.goede@xxxxxxxxxxxxxxxx>
On 12-Nov-26 12:37, Mark Brown 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.
This applies cleanly on 7.4-rc2 and fixes a regression breaking
audio on a lot of different devices there.
If some form of this is already in ASoC-next, then that needs to be
send to Linux as a fix ASAP.
@Kees, have you seen Dennis' remark about the