]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR: Fix incorrect type in argument
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 May 2020 08:02:08 +0000 (01:02 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 30 May 2020 04:20:21 +0000 (21:20 -0700)
commitf2a4a6d98b2bf3a65899650edb6a1029b1372e66
tree6817e0e61a4448a0621771badfebfc1f68fcb4bc
parent6178bc9ebd2a4db365cca06d3e68d03eb4f2afa4
net/mlx5: DR: Fix incorrect type in argument

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 <saeedm@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c