[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3f9fcc7d-931b-446a-b36a-1745f650c6cd@roeck-us.net>
Date: Thu, 27 Mar 2025 21:41:50 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>,
Lukasz Majczak <lma@...omium.org>, Wim Van Sebroeck
<wim@...ux-watchdog.org>, Benson Leung <bleung@...omium.org>,
Tzung-Bi Shih <tzungbi@...nel.org>
Cc: chrome-platform@...ts.linux.dev, linux-watchdog@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2][next] watchdog: cros-ec: Avoid
-Wflex-array-member-not-at-end warning
On 3/27/25 10:12, 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.
>
> So, with these changes, fix the following warning:
>
> drivers/watchdog/cros_ec_wdt.c:29:40: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
>
> Reviewed-by: Tzung-Bi Shih <tzungbi@...nel.org>
> Signed-off-by: Gustavo A. R. Silva <gustavoars@...nel.org>
Reviewed-by: Guenter Roeck <linux@...ck-us.net>
Powered by blists - more mailing lists