Re: [PATCH][next] perf/x86: Avoid multiple -Wflex-array-member-not-at-end warnings
From: Peter Zijlstra
Date: Thu May 07 2026 - 04:12:09 EST
On Mon, May 04, 2026 at 01:50:50PM -0600, Gustavo A. R. Silva wrote:
> > https://lore.kernel.org/all/20240806113254.GG12673@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
>
> Feel free to apply it.
Bah, stupid warning :/
There really is no sane way to tell the compiler that the code is fine
and it should just STFU already? I mean, it is directly followed by an
array of the right type to fill that flex thing.
Anyway, I suppose this all very much relies on the structure not getting
randomized, so let me stick __no_randomize_layout on it at the very
least.