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

2024-03-27 Thread Gustavo A. R. Silva
Hi all, Please, drop this. The following patch replaces it: https://lore.kernel.org/linux-hardening/ZgRsn72WkHzfCUsa@neat/ Thanks -- Gustavo On 3/26/24 20:29, Gustavo A. R. Silva wrote: Use the `DEFINE_FLEX()` helper for an on-stack definition of a flexible structure where the size of the fl

[PATCH][next] wifi: wil6210: Avoid -Wflex-array-member-not-at-end warning

2024-03-26 Thread Gustavo A. R. Silva
Use the `DEFINE_FLEX()` helper for an on-stack definition 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/net/wireless/ath/wil6210/wmi.c:4018:49: