Re: [PATCHv2] clk: mvebu: use kzalloc_flex
From: Brian Masney
Date: Mon Apr 06 2026 - 12:24:43 EST
Hi Rosen,
On Fri, Apr 03, 2026 at 12:47:01PM -0700, Rosen Penev wrote:
> Use a flexible array member to combine kzalloc and kcalloc in one
> allocation so they can be freed together.
>
> Add __counted_by for extra runtime analysis. Move counting variable
> assignment right after allocation as done by kzalloc_flex with GCC >=
> 15.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> v2: remove now unused goto label.
Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>
This is the third time that I've asked you this [1]: For the future, if
someone asks for changes in a previous version, then be sure to CC them
on the next revision. I was the one that found the unused goto in v1.
[1] https://lore.kernel.org/linux-clk/acvUoSOOF_9UQC75@xxxxxxxxxx/
https://lore.kernel.org/linux-clk/ac0o7XbBm8aBOa7a@xxxxxxxxxx/