OpenCloudOS-Kernel/drivers/net/ethernet/mellanox/mlxfw
Gustavo A. R. Silva b1cf7a5615 mlxfw: 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/285
Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/ZGKGiBxP0zHo6XSK@work
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-05-17 21:24:47 -07:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
mlxfw.h devlink: Reduce struct devlink exposure 2021-10-12 16:29:16 -07:00
mlxfw_fsm.c devlink: move flash end and begin to core devlink 2020-11-19 21:41:02 -08:00
mlxfw_mfa2.c net/mlxfw: Use kzalloc for allocating only one thing 2021-01-05 16:01:02 -08:00
mlxfw_mfa2.h
mlxfw_mfa2_file.h
mlxfw_mfa2_format.h mlxfw: Replace zero-length array with DECLARE_FLEX_ARRAY() helper 2023-05-17 21:24:47 -07:00
mlxfw_mfa2_tlv.h net: mlxfw: Replace zero-length array with flexible-array member 2020-03-03 17:39:19 -08:00
mlxfw_mfa2_tlv_multi.c mlxfw: fix null-ptr-deref in mlxfw_mfa2_tlv_next() 2023-04-18 13:26:44 +02:00
mlxfw_mfa2_tlv_multi.h