Subject: Re: [PATCH][next] net: inet_sock.h: Avoid thousands of -Wflex-array-member-not-at-end warnings

From: Jakub Kicinski <[email-masked]>
Date: Thu, 23 Oct 2025 17:25:18 -0700

On Tue, 21 Oct 2025 12:43:30 +0100 Gustavo A. R. Silva wrote:
>  struct ip_options_data {
> -	struct ip_options_rcu	opt;
> -	char			data[40];
> +	TRAILING_OVERLAP(struct ip_options_rcu, opt, opt.__data,
> +			 char			data[40];
> +	);
>  };

Is there a way to reserve space for flexible length array on the stack
without resorting to any magic macros? This struct has total of 5 users.
-- 
pw-bot: cr