]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath11k: Avoid -Wflex-array-member-not-at-end warnings
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 16 Aug 2024 10:12:39 +0000 (13:12 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 5 Sep 2024 16:19:48 +0000 (19:19 +0300)
commit820aa897837ff6c156f60423f82c0cb1d9b18103
tree6d19ecd928225f1174af5a0896cbaec07914de18
parent94745807f3ebd379f23865e6dab196f220664179
wifi: ath11k: 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.

Move the conflicting declaration to the end of the structure. Notice
that `struct ieee80211_chanctx_conf` is a flexible structure --a
structure that contains a flexible-array member.

Also, remove a couple of unused structures.

Fix the following warnings:
drivers/net/wireless/ath/ath11k/core.h:409:39: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
drivers/net/wireless/ath/ath11k/dp.h:1309:24: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
drivers/net/wireless/ath/ath11k/dp.h:1368:24: 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: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/ZrZB3Rjswe0ZXtug@cute
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/dp.h