[PATCHv2] clk: mvebu: use kzalloc_flex
Stephen Boyd
sboyd at kernel.org
Tue Apr 28 18:42:53 PDT 2026
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 at gmail.com>
> ---
Applied to clk-next
More information about the linux-arm-kernel
mailing list