Skip to content

Commit

Permalink
net/mlx5: DR: Fix incorrect type in argument
Browse files Browse the repository at this point in the history
HW spec objects should receive a void ptr to work on, the MLX5_SET/GET
macro will know how to handle it.

No need to provide explicit or wrong pointer type in this case.

warning: incorrect type in argument 1 (different base types)
    expected unsigned long long const [usertype] *sw_action
    got restricted __be64 [usertype] *[assigned] sw_action

Signed-off-by: Saeed Mahameed <[email protected]>
Reviewed-by: Mark Bloch <[email protected]>
  • Loading branch information
Saeed Mahameed committed May 30, 2020
1 parent f7e3ac4 commit 618f88c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ dr_action_modify_check_field_limitation(struct mlx5dr_action *action,
}

static bool
dr_action_modify_check_is_ttl_modify(const u64 *sw_action)
dr_action_modify_check_is_ttl_modify(const void *sw_action)
{
u16 sw_field = MLX5_GET(set_action_in, sw_action, field);

Expand Down

0 comments on commit 618f88c

Please sign in to comment.