Re: [PATCH] ALSA: seq: Use flexible array for MIDI channels
From: Takashi Iwai
Date: Fri May 15 2026 - 02:53:21 EST
On Mon, 11 May 2026 09:54:47 +0200,
Rosen Penev wrote:
>
> Store MIDI channel entries in the MIDI channel set allocation instead
> of allocating them separately.
>
> This ties the channel array lifetime directly to the channel set, removes
> a separate allocation failure path, and lets __counted_by() describe the
> array bounds. Move the embedded emux channel set to the end of its
> containing structure so it can carry the flexible array.
>
> Assisted-by: Codex:GPT-5.5
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Applied to for-next branch. Thanks.
Takashi