]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: iwlwifi: mei: Remove unused flexible-array member in struct iwl_sap_hdr
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 27 Aug 2025 08:15:54 +0000 (10:15 +0200)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 7 Sep 2025 06:18:36 +0000 (09:18 +0300)
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]

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://patch.msgid.link/aK6-usANI1UPtFVo@kspp
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
drivers/net/wireless/intel/iwlwifi/mei/sap.h

index ba1f75f739c2a1c5d4ede6a074adfc2364f68baa..f985ab90d41c91ae2668dd36ba75fff1d71e6314 100644 (file)
@@ -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[];
 };
 
 /**