Commit b2661df9 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Lee Jones
Browse files

leds: leds-cros_ec: Avoid -Wflex-array-member-not-at-end warning



-Wflex-array-member-not-at-end was introduced in GCC-14, and we are
getting ready to enable it, globally.

Replace an on-stack definition of a flexible structure with a call
to utility function cros_ec_cmd().

So, with these changes, fix the following warning:

drivers/leds/leds-cros_ec.c:70:40: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]

Signed-off-by: default avatar"Gustavo A. R. Silva" <gustavoars@kernel.org>
Acked-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/Z-rKcgFjsyKvd58q@kspp


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent ca72d5ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment