Re: [PATCH][next] wifi: radiotap: Avoid -Wflex-array-member-not-at-end warnings

2024-08-27 Thread Gustavo A. R. Silva
On 27/08/24 02:22, Johannes Berg wrote: On Tue, 2024-08-06 at 12:08 -0600, Gustavo A. R. Silva wrote: +++ b/include/net/ieee80211_radiotap.h @@ -24,31 +24,36 @@ * struct ieee80211_radiotap_header - base radiotap header */ struct ieee80211_radiotap_header { - /** -* @it_

Re: [PATCH][next] wifi: radiotap: Avoid -Wflex-array-member-not-at-end warnings

2024-08-27 Thread Johannes Berg
On Tue, 2024-08-06 at 12:08 -0600, Gustavo A. R. Silva wrote: > > +++ b/include/net/ieee80211_radiotap.h > @@ -24,31 +24,36 @@ > * struct ieee80211_radiotap_header - base radiotap header > */ > struct ieee80211_radiotap_header { > - /** > - * @it_version: radiotap version, always 0 >

Re: [PATCH][next] wifi: radiotap: Avoid -Wflex-array-member-not-at-end warnings

2024-08-08 Thread Simon Horman
On Tue, Aug 06, 2024 at 12:08:12PM -0600, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > So, in order to avoid ending up with a flexible-array member in the > middle of multiple other structs, we use the

[PATCH][next] wifi: radiotap: Avoid -Wflex-array-member-not-at-end warnings

2024-08-06 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. So, in order to avoid ending up with a flexible-array member in the middle of multiple other structs, we use the `__struct_group()` helper to create a new tagged `struct ieee80211_radiotap_hea