Re: [PATCHv2] interconnect: qcom: simplify allocation

From: Konrad Dybcio

Date: Wed Jun 10 2026 - 05:44:45 EST


On 6/10/26 12:24 AM, Rosen Penev wrote:
> Use a flexible array member to reduce allocation by 1.
>
> Add __counted_by for extra runtime analysis. Move counting variable
> assignment after allocation before any array access.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>

Konrad