Skip to contentSkip to conversation

wifi: iwlwifi: mei: Remove unused flexible-array member in struct iwl_sap_hdr

PATCH New Gustavo A. R. Silva 1 participant 1 message Aug 27, 2025 Intel wireless wifi link (iwlwifi)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: iwlwifi: mei: Remove unused flexible-array member in struct iwl_sap_hdr

Remove unused fexible-array member and avoid 14 of the following type of warnings:

drivers/net/wireless/intel/iwlwifi/mei/sap.h:318:28: 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/iwlwifi/mei/sap.h | 2 --
 1 file changed, 2 deletions(-)
drivers/net/wireless/intel/iwlwifi/mei/sap.h +0 -2
index ba1f75f739c2..f985ab90d41c 100644
@@ -300,13 +300,11 @@ enum iwl_sap_msg {
  * @type: See &enum iwl_sap_msg.
  * @len: The length of the message (header not included).
  * @seq_num: For debug.
- * @payload: The payload of the message.
  */
 struct iwl_sap_hdr {
 	__le16 type;
 	__le16 len;
 	__le32 seq_num;
-	u8 payload[];
 };
 
 /**
Signature · 1 line
2.43.0