From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>,
Stanislaw Gruszka <stf_xl@wp.pl>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-hardening@vger.kernel.org
Subject: Re: [PATCH] iwlegacy: Remove unused structs and avoid -Wflex-array-member-not-at-end warnings
Date: Wed, 27 Aug 2025 11:25:26 +0200 [thread overview]
Message-ID: <e0aeda2d-931c-49c6-b0d4-dd097e87eae6@embeddedor.com> (raw)
In-Reply-To: <aJl7TxeWgLdEKWhg@kspp>
Hi all,
Friendly ping: who can take this, please? :)
Thanks!
-Gustavo
On 11/08/25 07:10, Gustavo A. R. Silva wrote:
> Remove unused structures and avoid the following
> -Wflex-array-member-not-at-end warnings:
>
> drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h:68:39: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
> drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h:60:39: 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>
> ---
> .../wireless/intel/iwlegacy/iwl-spectrum.h | 24 -------------------
> 1 file changed, 24 deletions(-)
>
> diff --git a/drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h b/drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h
> index 1e8ab704dbfb..f00eb878b94b 100644
> --- a/drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h
> +++ b/drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h
> @@ -50,28 +50,4 @@ struct ieee80211_measurement_params {
> __le16 duration;
> } __packed;
>
> -struct ieee80211_info_element {
> - u8 id;
> - u8 len;
> - u8 data[];
> -} __packed;
> -
> -struct ieee80211_measurement_request {
> - struct ieee80211_info_element ie;
> - u8 token;
> - u8 mode;
> - u8 type;
> - struct ieee80211_measurement_params params[];
> -} __packed;
> -
> -struct ieee80211_measurement_report {
> - struct ieee80211_info_element ie;
> - u8 token;
> - u8 mode;
> - u8 type;
> - union {
> - struct ieee80211_basic_report basic[0];
> - } u;
> -} __packed;
> -
> #endif
next prev parent reply other threads:[~2025-08-27 9:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-11 5:10 [PATCH] iwlegacy: Remove unused structs and avoid -Wflex-array-member-not-at-end warnings Gustavo A. R. Silva
2025-08-22 7:14 ` Stanislaw Gruszka
2025-08-27 9:25 ` Gustavo A. R. Silva [this message]
2025-08-27 9:36 ` Johannes Berg
2025-08-27 10:05 ` Gustavo A. R. Silva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0aeda2d-931c-49c6-b0d4-dd097e87eae6@embeddedor.com \
--to=gustavo@embeddedor.com \
--cc=gustavoars@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=stf_xl@wp.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).