diff options
author | 2025-03-26 18:04:02 -0600 | |
---|---|---|
committer | 2025-04-23 15:20:58 +0200 | |
commit | 7438843df8cf7a484303caee7540a00f0ef972b2 (patch) | |
tree | 1c686a2c20aa9aff50cac880d35e225156f7e3f9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | wifi: mac80211: Avoid -Wflex-array-member-not-at-end warnings (diff) | |
download | wireguard-linux-7438843df8cf7a484303caee7540a00f0ef972b2.tar.xz wireguard-linux-7438843df8cf7a484303caee7540a00f0ef972b2.zip |
wifi: iwlwifi: mvm: Avoid -Wflex-array-member-not-at-end warning
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are
getting ready to enable it, globally.
Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition of
a flexible structure where the size of the flexible-array member
is known at compile-time, and refactor the rest of the code,
accordingly.
So, with these changes, fix the following warning:
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:6430:41: 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: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/Z-SV8gb6MuZJmmhe@kspp
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions