]> 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)
commit057e247c041f22e23590628e85ab70ff06d97a54
tree6817e0e61a4448a0621771badfebfc1f68fcb4bc
parentea5b2bb54a79483345abb8ae47497d048afce728
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