diff options
author | 2025-03-26 17:40:36 -0600 | |
---|---|---|
committer | 2025-04-23 15:20:20 +0200 | |
commit | 17328a5b6a8ff21d318283700d8d33dc2b8ca652 (patch) | |
tree | b29a8e9ee170646855f814522ebc694d0eea68cb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dt-bindings: wireless: qcom,wcnss: Use wireless-controller.yaml (diff) | |
download | wireguard-linux-17328a5b6a8ff21d318283700d8d33dc2b8ca652.tar.xz wireguard-linux-17328a5b6a8ff21d318283700d8d33dc2b8ca652.zip |
wifi: mac80211: 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.
Use the `DEFINE_RAW_FLEX()` helper for on-stack definitions 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 warnings:
net/mac80211/spectmgmt.c:151:47: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
net/mac80211/spectmgmt.c:155:48: 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>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/Z-SQdHZljwAgIlp9@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