1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/ath/wil6210
Gustavo A. R. Silva 27044b57f8 wifi: wil6210: wmi: Replace zero-length array with DECLARE_FLEX_ARRAY() helper
Zero-length arrays are deprecated, and we are moving towards adopting
C99 flexible-array members, instead. So, replace zero-length arrays
declarations alone in structs with the new DECLARE_FLEX_ARRAY()
helper macro.

This helper allows for flexible-array members alone in structs.

Link: https://github.com/KSPP/linux/issues/193
Link: https://github.com/KSPP/linux/issues/288
Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/ZGKHM+MWFsuqzTjm@work
2023-05-25 20:03:35 +03:00
..
boot_loader.h wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
cfg80211.c wifi: cfg80211: Add link_id parameter to various key operations for MLO 2022-08-25 10:41:05 +02:00
debug.c wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
debugfs.c wifi: wil6210: debugfs: use DEFINE_SHOW_ATTRIBUTE to simplify fw_capabilities/fw_version 2022-09-28 10:45:20 +03:00
ethtool.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
fw.c wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
fw.h wifi: wil6210: fw: Replace zero-length arrays with DECLARE_FLEX_ARRAY() helper 2023-05-25 20:02:47 +03:00
fw_inc.c wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
interrupt.c wil6210: Fix wrong function name in comments 2021-06-15 17:01:25 +03:00
Kconfig wil6210: select CONFIG_CRC32 2021-01-05 15:50:36 -08:00
main.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
Makefile ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
netdev.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
p2p.c wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
pcie_bus.c cfg80211: avoid holding the RTNL when calling the driver 2021-01-26 11:55:50 +01:00
pm.c wil6210: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync() 2022-04-23 12:31:48 +03:00
pmc.c wil6210: pmc: Demote a few nonconformant kernel-doc function headers 2020-08-31 18:18:40 +03:00
pmc.h wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
rx_reorder.c wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
trace.c wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
trace.h tracing/ath: Use the new __vstring() helper 2022-07-15 17:44:40 -04:00
txrx.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
txrx.h wifi: wil6210: fix repeated words in comments 2022-07-18 13:05:15 +03:00
txrx_edma.c wil6210: Add Support for Extended DMG MCS 12.1 2021-02-09 09:25:52 +02:00
txrx_edma.h wil6210: fix MID valid bits in Rx status message 2019-12-19 18:16:31 +02:00
wil6210.h wil6210: use NAPI_POLL_WEIGHT for napi budget 2022-05-02 17:00:11 +03:00
wil_crash_dump.c wil6210: take mem_lock for writing in crash dump collection 2019-12-19 18:15:56 +02:00
wil_platform.c wil6210: wil_platform: Demote kernel-doc header to standard comment block 2020-08-31 18:18:43 +03:00
wil_platform.h wil6210: add SPDX license identifiers 2019-10-31 10:16:10 +02:00
wmi.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
wmi.h wifi: wil6210: wmi: Replace zero-length array with DECLARE_FLEX_ARRAY() helper 2023-05-25 20:03:35 +03:00