]> www.infradead.org Git - users/hch/misc.git/commitdiff
wifi: iwlegacy: Remove unused structs and avoid -Wflex-array-member-not-at-end warnings
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 11 Aug 2025 05:10:39 +0000 (14:10 +0900)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Sep 2025 08:06:41 +0000 (10:06 +0200)
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>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Link: https://patch.msgid.link/aJl7TxeWgLdEKWhg@kspp
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h

index 1e8ab704dbfbb3cde7a28ca977fae2f8132ad9ac..f00eb878b94b5addd6a6960ab39f7737f7a115e6 100644 (file)
@@ -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