[PATCHv2] clk: kirkwood: use kzalloc_flex
Brian Masney
bmasney at redhat.com
Tue Mar 31 07:05:21 PDT 2026
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 at gmail.com>
> ---
> v2: remove unused goto.
Reviewed-by: Brian Masney <bmasney at redhat.com>
For the future, if someone asks for changes in a previous version, then
be sure to CC them on the next revision.
More information about the linux-arm-kernel
mailing list