]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: 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:20:21 +0000 (19:20 +0300)
commit02f454f9aa6255d99611d6a4e37edd08812878df
treeb0fc9d353a1e038db6d4c4520dcad14775414b47
parent820aa897837ff6c156f60423f82c0cb1d9b18103
wifi: ath12k: 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 an unused structure.

Fix the following warnings:
drivers/net/wireless/ath/ath12k/core.h:290: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/ath12k/dp.h:1499: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>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/ZrZEuxJihMzAaTVh@cute
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/dp.h