Re: [PATCH] thunderbolt: tunnel: simplify allocation

From: Mika Westerberg

Date: Wed Apr 01 2026 - 07:22:11 EST


On Mon, Mar 30, 2026 at 02:10:14PM -0700, Rosen Penev wrote:
> +++ b/drivers/thunderbolt/tunnel.h
> @@ -75,7 +75,6 @@ struct tb_tunnel {
> struct tb *tb;
> struct tb_port *src_port;
> struct tb_port *dst_port;
> - struct tb_path **paths;
> size_t npaths;
> int (*pre_activate)(struct tb_tunnel *tunnel);
> int (*activate)(struct tb_tunnel *tunnel, bool activate);
> @@ -107,6 +106,8 @@ struct tb_tunnel {
> struct delayed_work dprx_work;
> void (*callback)(struct tb_tunnel *tunnel, void *data);
> void *callback_data;
> +
> + struct tb_path *paths[] __counted_by(npaths);

Please move the kernel-doc to the right place as well.