Re: [PATCH] phy: qualcomm: usb-hs-28nm: use flex array

From: Gustavo A. R. Silva

Date: Thu Mar 05 2026 - 14:53:39 EST


Hi!

On 3/5/26 19:06, Konrad Dybcio wrote:
On 3/5/26 12:06 AM, Rosen Penev wrote:
Allows simplifying allocation to a single kzalloc call.

Also allows using __counted_by for extra runtime analysis.

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---

I don't see how this is an improvement - __counted_by() is useful for
cases where we don't know how many entries there are, but in this
case it's fully deterministic (as priv->num_clks is a compile-time
constant)

Will this always be the case in the future (entries being a compile-time
constant)?

Thanks
-Gustavo


Konrad