Atul Raut <rauji.raut@xxxxxxxxx> wrote: > One-element arrays are obsolete, and flexible > array members have taken their place. So, in > struct cca_stats_n_flags, replace the one-element > array with a flexible-array member. > > This fixes warnings such as: > ./drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:119:6-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > Signed-off-by: Atul Raut <rauji.raut@xxxxxxxxx> Arend, what do you think? Link to the patch after "--" line. -- https://patchwork.kernel.org/project/linux-wireless/patch/20230803052238.12147-2-rauji.raut@xxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches