diff options
author | Kalle Valo <quic_kvalo@quicinc.com> | 2024-03-20 21:24:49 +0300 |
---|---|---|
committer | Kalle Valo <quic_kvalo@quicinc.com> | 2024-03-25 13:50:42 +0300 |
commit | 1f4672fd16488ff287710df56a5c210c11640cc8 (patch) | |
tree | f800c51a6aea12e0ecb40466dc6a4de18ecfbd9c /drivers/net/wireless/ath/wil6210/fw.h | |
parent | 1eb2ac4a9f3f615181c83a5853c5ea9332d93e8c (diff) | |
download | linux-1f4672fd16488ff287710df56a5c210c11640cc8.tar.xz |
wifi: wil6210: fix sparse warnings
Sparse warns:
drivers/net/wireless/ath/wil6210/fw.c: note: in included file (through drivers/net/wireless/ath/wil6210/wil6210.h):
drivers/net/wireless/ath/wil6210/fw.h:96:47: warning: array of flexible structures
drivers/net/wireless/ath/wil6210/cfg80211.c: note: in included file (through drivers/net/wireless/ath/wil6210/wil6210.h):
drivers/net/wireless/ath/wil6210/fw.h:96:47: warning: array of flexible structures
I decided to remove the combos field altogether and just do pointer arithmetic
instead. Not pretty but I didn't want to waste too much time on an orphaned
driver.
Compile tested only.
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240320182449.3757215-5-kvalo@kernel.org
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/fw.h')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/fw.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/fw.h b/drivers/net/wireless/ath/wil6210/fw.h index aa1620e0d24f..2079a90ec260 100644 --- a/drivers/net/wireless/ath/wil6210/fw.h +++ b/drivers/net/wireless/ath/wil6210/fw.h @@ -93,7 +93,6 @@ struct wil_fw_record_concurrency { /* type == wil_fw_type_comment */ /* number of concurrency combinations that follow */ __le16 n_combos; /* keep last - combinations, variable size by n_combos */ - struct wil_fw_concurrency_combo combos[]; } __packed; /* brd file info encoded inside a comment record */ |