On Wed, Mar 11, 2026 at 3:56 AM Rosen Penev <[email protected]> wrote:

> A flexible array member can be used to combine allocations.
>
> Signed-off-by: Rosen Penev <[email protected]>
> Acked-by: Viresh Kumar <[email protected]>

unsigned int num_lines;

> +
> +       struct virtio_gpio_line lines[];
>  };

struct virtio_gpio_line lines[] __counted_by(num_lines);

I'm starting to get a slight feeling of déja vu here, we
want to use __counted_by() for all
of these.

Yours,
Linus Walleij

Reply via email to