linux/drivers/net/wireless/intel/iwlwifi/pcie
Gustavo A. R. Silva d2af710d6d wifi: iwlwifi: mvm/fw: Avoid -Wflex-array-member-not-at-end warnings
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are
getting ready to enable it, globally.

We have a flexible struct iwl_tx_cmd_v6 in the middle of a few structs,
but those don't even need the flexible part.

So, we add iwl_tx_cmd_v6_params, that will contain everything except the
flexible array and use this one for the containing structs.

Also, as part of the refactoring remove unused flex array `payload`.

So, with these changes, fix the following warnings:

drivers/net/wireless/intel/iwlwifi/mld/../fw/api/tdls.h:134:27: 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/mld/../fw/api/tdls.h:53:27: 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/mld/../fw/api/tx.h:745:27: 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/mld/../fw/api/tx.h:764:27: 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/mvm/../fw/api/tdls.h:134:27: 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/mvm/../fw/api/tdls.h:53:27: 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/mvm/../fw/api/tx.h:745:27: 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/mvm/../fw/api/tx.h:764:27: 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://msgid.link/aCUOQ6wdD1jQjO36@kspp
[use iwl_tx_cmd_v6_params as described in the changed commit message]
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250709224608.0785a61b0826.I6da02c2a12a5ed1e6d317045a6995d132850a455@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
2025-07-22 06:16:01 +03:00
..
gen1_2 wifi: iwlwifi: mvm/fw: Avoid -Wflex-array-member-not-at-end warnings 2025-07-22 06:16:01 +03:00
ctxt-info-v2.c wifi: iwlwifi: pcie: fix kernel-doc warnings 2025-06-25 10:57:32 +03:00
ctxt-info.c iwlwifi-next - iwlwifi features 2025-06-25 11:22:48 +02:00
drv.c wifi: iwlwifi: pcie: accept new devices for MVM-only configs 2025-07-10 19:48:38 +03:00
iwl-context-info-v2.h wifi: iwlwifi: pcie: fix kernel-doc warnings 2025-06-25 10:57:32 +03:00
iwl-context-info.h wifi: iwlwifi: move iwl-context-info header files 2025-06-11 06:27:30 +03:00
utils.c wifi: iwlwifi: pcie: move iwl_trans_pcie_dump_regs() to utils.c 2025-06-25 10:57:33 +03:00
utils.h wifi: iwlwifi: pcie: add a missing include 2025-07-10 19:48:38 +03:00