diff options
author | 2025-03-31 11:01:38 -0600 | |
---|---|---|
committer | 2025-04-15 17:57:57 +0100 | |
commit | b2661df9febda90b2bc7e5b867431c8433f49e79 (patch) | |
tree | 2edc327e3a74933fbe105dd4cee7069548a7d2a9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Documentation: leds: Remove .rst extension for leds-st1202 on index (diff) | |
download | linux-rng-b2661df9febda90b2bc7e5b867431c8433f49e79.tar.xz linux-rng-b2661df9febda90b2bc7e5b867431c8433f49e79.zip |
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: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Acked-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/Z-rKcgFjsyKvd58q@kspp
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions