mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
net/mlx5: sparse: warning: incorrect type in assignment
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:191:13: sparse: warning: incorrect type in assignment (different base types) Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
This commit is contained in:
@@ -188,7 +188,7 @@ static int mlx5_fw_tracer_create_mkey(struct mlx5_fw_tracer *tracer)
|
||||
|
||||
MLX5_SET(create_mkey_in, in, translations_octword_actual_size,
|
||||
DIV_ROUND_UP(TRACER_BUFFER_PAGE_NUM, 2));
|
||||
mtt = (u64 *)MLX5_ADDR_OF(create_mkey_in, in, klm_pas_mtt);
|
||||
mtt = (__be64 *)MLX5_ADDR_OF(create_mkey_in, in, klm_pas_mtt);
|
||||
for (i = 0 ; i < TRACER_BUFFER_PAGE_NUM ; i++)
|
||||
mtt[i] = cpu_to_be64(tracer->buff.dma + i * PAGE_SIZE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user