linux-stable/drivers/net/ethernet/mellanox
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
..
mlx4 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-04-13 16:04:28 -07:00
mlx5/core sch_htb: Allow HTB priority parameter in offload mode 2023-05-15 09:31:07 +01:00
mlxbf_gige net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
mlxfw mlxfw: Replace zero-length array with DECLARE_FLEX_ARRAY() helper 2023-05-17 21:24:47 -07:00
mlxsw Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
Kconfig
Makefile