Re: [PATCH][next] ASoC: soc-topology: Avoid -Wflex-array-member-not-at-end warning

From: Mark Brown

Date: Thu Apr 30 2026 - 00:36:28 EST


On Wed, Apr 29, 2026 at 05:19:49PM -0600, Gustavo A. R. Silva wrote:
> -Wflex-array-member-not-at-end was introduced in GCC-14, and we are
> getting ready to enable it, globally.

> Use the __TRAILING_OVERLAP() helper to fix the following warning:
>
> sound/soc/soc-topology-test.c:136:38: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]

Sashiko is complaining about this breaking some of the users:

https://sashiko.dev/#/patchset/afKSFY3qrlSOJ0EJ%40kspp

I don't know enough to tell if that's actually a sensible report or not.

Attachment: signature.asc
Description: PGP signature