summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-mpfs.c
diff options
context:
space:
mode:
authorJeff Johnson <quic_jjohnson@quicinc.com>2023-12-17 13:29:03 +0200
committerKalle Valo <quic_kvalo@quicinc.com>2023-12-18 20:47:03 +0200
commitd2eb318f4b6be1176e87ac3f9f8cc976be1c014b (patch)
treeb4dfa549b2ea1542be7197ca6bc8f84237f25814 /drivers/reset/reset-mpfs.c
parentd6b27eb997ef9a2aa51633b3111bc4a04748e6d3 (diff)
wifi: ath10k: use flexible array in struct wmi_host_mem_chunks
Currently struct wmi_host_mem_chunks defines: struct host_memory_chunk items[1]; Per the guidance in [1] this should be a flexible array. However there is a documented requirement: some fw revisions require at least 1 chunk regardless of count To satisfy this requirement, follow the guidance from [2] and wrap the array in a union which contains both the flexible array and a single instance of the underlying struct. Since the footprint of the struct is unchanged, no additional driver changes are required. No functional changes, compile tested only. [1] https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays [2] https://lore.kernel.org/linux-wireless/202308301529.AC90A9EF98@keescook/ Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://msgid.link/20231213-wmi_host_mem_chunks_flexarray-v1-1-92922d92fa2c@quicinc.com
Diffstat (limited to 'drivers/reset/reset-mpfs.c')
0 files changed, 0 insertions, 0 deletions