Re: [PATCH v3][next] w1: Avoid -Wflex-array-member-not-at-end warnings

From: Krzysztof Kozlowski
Date: Wed Apr 16 2025 - 03:38:02 EST



On Mon, 07 Apr 2025 17:28:20 -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 `DEFINE_RAW_FLEX()` helper for on-stack definitions of
> a flexible structure where the size of the flexible-array member
> is known at compile-time, and refactor the rest of the code,
> accordingly.
>
> [...]

Applied, thanks!

[1/1] w1: Avoid -Wflex-array-member-not-at-end warnings
https://git.kernel.org/krzk/linux-w1/c/a9b3ecc7bcf6cb8d3c4947a7ae260f508c4c5fd1

Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>