]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: wmi: remove array of flexible structures
authorKalle Valo <quic_kvalo@quicinc.com>
Thu, 9 Dec 2021 09:15:45 +0000 (11:15 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 13 Dec 2021 09:44:51 +0000 (11:44 +0200)
commite2ffb356af31d9d2f1524bdbd3fa815b8010918b
treeb4118a064e7fc9d405786b76bd1590cbaa5ef5d4
parent0269acb773e429d1800d377cf24283b6d884aaa8
ath10k: wmi: remove array of flexible structures

I updated to sparse v0.6.4 and it warns:

drivers/net/wireless/ath/ath10k/wmi.c: note: in included file (through drivers/net/wireless/ath/ath10k/core.h):
drivers/net/wireless/ath/ath10k/wmi.h:3481:34: warning: array of flexible structures

Fix it by changing the type to u8 array, in struct wmi_phyerr_hdr_arg it's
stored as a void pointer anyway.

Compile tested only.

Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20211209091545.6098-2-kvalo@kernel.org
drivers/net/wireless/ath/ath10k/wmi.h