OSDN Git Service

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)
commit618f88c4c40a9621a3105f3ff957a91a148e7d94
tree6817e0e61a4448a0621771badfebfc1f68fcb4bc
parentf7e3ac424a2b3fc6fb3b490106cd874adb62ae4a
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