[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251023172518.3f370477@kernel.org>
Date: Thu, 23 Oct 2025 17:25:18 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, Simon Horman
<horms@...nel.org>, netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH][next] net: inet_sock.h: Avoid thousands of
-Wflex-array-member-not-at-end warnings
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
Powered by blists - more mailing lists