Re: [PATCHv2] clk: mvebu: use kzalloc_flex

From: Stephen Boyd

Date: Tue Apr 28 2026 - 23:47:03 EST


Quoting Rosen Penev (2026-04-03 12:47:01)
> 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>
> ---

Applied to clk-next