mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi/fw
Gustavo A. R. Silva 34e63cd5ba iwlwifi: fw: Replace zero-length arrays with flexible-array members
There is a regular need in the kernel to provide a way to declare
having a dynamically sized set of trailing elements in a structure.
Kernel code should always use “flexible array members”[1] for these
cases. The older style of one-element or zero-length arrays should
no longer be used[2].

[1] https://en.wikipedia.org/wiki/Flexible_array_member
[2] https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-length-and-one-element-arrays

Link: https://github.com/KSPP/linux/issues/78
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220216195015.GA904148@embeddedor
2022-04-06 10:18:08 +03:00
..
api iwlwifi: fw: Replace zero-length arrays with flexible-array members 2022-04-06 10:18:08 +03:00
acpi.c brcmfmac 2022-03-11 13:00:17 -08:00
acpi.h iwlwifi: acpi: move ppag code from mvm to fw/acpi 2022-03-10 09:23:29 +02:00
dbg.c iwlwifi: dbg: check trigger data before access 2022-03-10 09:23:29 +02:00
dbg.h iwlwifi: yoyo: send hcmd to fw after dump collection completes. 2022-02-18 10:40:55 +02:00
debugfs.c iwlwifi: prefer WIDE_ID() over iwl_cmd_id() 2022-02-18 10:40:50 +02:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
dump.c iwlwifi: dump RCM error tables 2021-12-21 12:35:05 +02:00
error-dump.h iwlwifi: fw: Replace zero-length arrays with flexible-array members 2022-04-06 10:18:08 +03:00
file.h iwlwifi: fw: Replace zero-length arrays with flexible-array members 2022-04-06 10:18:08 +03:00
img.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
img.h iwlwifi: mvm: remove cipher scheme support 2022-03-10 09:23:27 +02:00
init.c iwlwifi: make iwl_fw_lookup_cmd_ver() take a cmd_id 2022-02-18 10:40:50 +02:00
notif-wait.c iwlwifi: fw: fix notification wait locking 2021-04-06 13:25:59 +03:00
notif-wait.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
paging.c iwlwifi: avoid void pointer arithmetic 2022-02-18 10:40:50 +02:00
pnvm.c iwlwifi: fix various more -Wcast-qual warnings 2022-02-18 10:40:50 +02:00
pnvm.h iwlwifi: move get pnvm file name to a separate function 2021-08-26 23:38:16 +03:00
rs.c iwlwifi: fix iwl_legacy_rate_to_fw_idx 2022-02-03 10:24:47 +02:00
runtime.h iwlwifi: mvm: add a flag to reduce power command. 2022-03-10 09:23:26 +02:00
smem.c iwlwifi: prefer WIDE_ID() over iwl_cmd_id() 2022-02-18 10:40:50 +02:00
uefi.c iwlwifi: fix various more -Wcast-qual warnings 2022-02-18 10:40:50 +02:00
uefi.h iwlwifi: support SAR GEO Offset Mapping override via BIOS 2021-12-07 20:06:47 +02:00