Re: [PATCHv2] thunderbolt: tunnel: simplify allocation

From: Mika Westerberg

Date: Tue Apr 07 2026 - 03:04:55 EST


On Wed, Apr 01, 2026 at 02:47:26PM -0700, Rosen Penev wrote:
> Use a flexible array member and kzalloc_flex to combine allocations.
>
> Add __counted_by for extra runtime analysis. Move counting variable
> assignment after allocation. kzalloc_flex with GCC >= 15 does this
> automatically.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

Applied to thunderbolt.git/next, thanks!