Re: [PATCH v2] platform/chrome: cros_ec: Avoid -Wflex-array-member-not-at-end warning

From: Tzung-Bi Shih
Date: Wed Aug 13 2025 - 06:04:32 EST


On Mon, Aug 11, 2025 at 10:27:22PM +0900, 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 new TRAILING_OVERLAP() helper to fix the following warning:
>
> drivers/platform/chrome/cros_ec.c:106:40: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
>
> [...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[1/1] platform/chrome: cros_ec: Avoid -Wflex-array-member-not-at-end warning
commit: 8abbbbb588f1f1bf95ae56c1531a17520ce487e2

Thanks!