]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: cmd: Fix memset with byte count warning
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 May 2020 06:16:02 +0000 (23:16 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 30 May 2020 04:20:21 +0000 (21:20 -0700)
commit894ce2dea5ac39ff53e72d7f58dd8b94fbf6e00e
treef1b57b294e96b5ab2a0b6c2ccdfa3303263dd5f2
parent45bb76be6ed5f41a609f7513451099376fa5dac1
net/mlx5: cmd: Fix memset with byte count warning

Fix sparse warning:
drivers/net/ethernet/mellanox/mlx5/core/cmd.c:1949:15:
warning: memset with byte count of 271720

mlx5_cmd_stats array is too big to be held inline in mlx5_cmd.
Allocate it separately.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
include/linux/mlx5/driver.h