Re: [PATCHv2] clk: kirkwood: use kzalloc_flex
From: Brian Masney
Date: Tue Mar 31 2026 - 10:06:26 EST
On Mon, Mar 30, 2026 at 01:55:04PM -0700, Rosen Penev wrote:
> Simplify allocation by using a flexible array member and kzalloc_flex to
> combine allocations.
>
> Add __counted_by for extra runtime analysis. Move counting variable
> assignment to right after allocation as required by __counted_by.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> v2: remove unused goto.
Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>
For the future, if someone asks for changes in a previous version, then
be sure to CC them on the next revision.