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

2026-04-30 Thread Gustavo A. R. Silva




On 4/29/26 22:36, Mark Brown wrote:

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.


It seems Sashiko is correct here.

I'll rework this patch.

Thanks!
-Gustavo




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

2026-04-29 Thread Mark Brown
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.


signature.asc
Description: PGP signature