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>
This commit is contained in:
@@ -298,7 +298,7 @@ struct mlx5_cmd {
|
||||
struct mlx5_cmd_debug dbg;
|
||||
struct cmd_msg_cache cache[MLX5_NUM_COMMAND_CACHES];
|
||||
int checksum_disabled;
|
||||
struct mlx5_cmd_stats stats[MLX5_CMD_OP_MAX];
|
||||
struct mlx5_cmd_stats *stats;
|
||||
};
|
||||
|
||||
struct mlx5_port_caps {
|
||||
|
||||
Reference in New Issue
Block a user