Re: [PATCH] ata: libahci_platform: remove kcalloc

From: Damien Le Moal

Date: Fri Mar 27 2026 - 11:34:35 EST


On 2026/03/26 19:50, Rosen Penev wrote:
> Use a flexible array member with struct_size to combine the allocations.
>
> Added __counted_by support for extra runtime analysis.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

Looks OK. But the commit title is not great. Let's change that to something like:

ata: libahci_platform: use flex array for platform PHYs

That is more descriptive of the change.


--
Damien Le Moal
Western Digital Research