On Mon, 30 Mar 2026 14:35:28 -0700, Rosen Penev wrote:
> Use a flexible array member (FAM) to combine hwmods array allocation
> with the omap_device structure. This reduces the number of allocations
> from two separate calls (one for the device, one for the array) to a
> single allocation, improving efficiency and reducing memory fragmentation.
>
> The FAM approach also enables bounds checking through __counted_by(),
> which provides runtime verification that array accesses stay within
> the allocated size. This improves security and helps catch bugs during
> development.
>
> [...]
Applied, thanks!
[1/1] ARM: omap2: simplify allocation for omap_device
commit: 2a7a9e20b9e8b5dc4fdef777e67d390dcb3a8ea4
Best regards,
--
Kevin Hilman (TI) <[email protected]>