Re: [PATCH][next] leds: Avoid -Wflex-array-member-not-at-end warning

From: Gustavo A. R. Silva
Date: Mon Mar 31 2025 - 13:04:43 EST



My issue was with the general usage of DEFINE_RAW_FLEX(), the reply was
placed badly. For somebody not knowing this construct it's not clear
what is happening under the hood.
It's probably fine in a regular header file with some explanation,
but in a random driver it looks off.

The following is what I had in mind. Now actually tested.

OK, let's go with that :)

https://lore.kernel.org/linux-hardening/Z-rKcgFjsyKvd58q@kspp/

Thanks!
--
Gustavo