]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: DR: Fix cast to restricted __be32
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 May 2020 08:11:37 +0000 (01:11 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 30 May 2020 04:20:21 +0000 (21:20 -0700)
raw_ip actual type is __be32 and not u32.
Fix that and get rid of the warning.

drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c:906:31:
warning: cast to restricted __be32

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c

index 78c884911ceb35030e9b63551b80b59d81268ee7..4708950166930e67f6eed860b016390e1c738f3b 100644 (file)
@@ -869,7 +869,7 @@ static void dr_ste_copy_mask_misc(char *mask, struct mlx5dr_match_misc *spec)
 
 static void dr_ste_copy_mask_spec(char *mask, struct mlx5dr_match_spec *spec)
 {
-       u32 raw_ip[4];
+       __be32 raw_ip[4];
 
        spec->smac_47_16 = MLX5_GET(fte_match_set_lyr_2_4, mask, smac_47_16);