Blame SOURCES/0294-netdrv-net-mlx5-DR-Fix-cast-to-restricted-__be32.patch

d8f823
From c9729182a9808a78e34f42701efd067c13d4e75e Mon Sep 17 00:00:00 2001
d8f823
From: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Date: Mon, 1 Jun 2020 15:40:47 -0400
d8f823
Subject: [PATCH 294/312] [netdrv] net/mlx5: DR: Fix cast to restricted __be32
d8f823
d8f823
Message-id: <20200601154102.25980-25-ahleihel@redhat.com>
d8f823
Patchwork-id: 315728
d8f823
Patchwork-instance: patchwork
d8f823
O-Subject: [RHEL8.3 BZ 1842258 24/39] net/mlx5: DR: Fix cast to restricted __be32
d8f823
Bugzilla: 1842258
d8f823
RH-Acked-by: Honggang Li <honli@redhat.com>
d8f823
RH-Acked-by: Kamal Heib <kheib@redhat.com>
d8f823
RH-Acked-by: Marcelo Leitner <mleitner@redhat.com>
d8f823
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
d8f823
d8f823
Bugzilla: http://bugzilla.redhat.com/1842258
d8f823
Upstream: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git , branch: master
d8f823
d8f823
commit c2ba2c2287698bac36bf71e5c4f3be423371bee0
d8f823
Author: Saeed Mahameed <saeedm@mellanox.com>
d8f823
Date:   Thu May 28 01:11:37 2020 -0700
d8f823
d8f823
    net/mlx5: DR: Fix cast to restricted __be32
d8f823
d8f823
    raw_ip actual type is __be32 and not u32.
d8f823
    Fix that and get rid of the warning.
d8f823
d8f823
    drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c:906:31:
d8f823
    warning: cast to restricted __be32
d8f823
d8f823
    Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
d8f823
    Reviewed-by: Mark Bloch <markb@mellanox.com>
d8f823
d8f823
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
d8f823
---
d8f823
 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c | 2 +-
d8f823
 1 file changed, 1 insertion(+), 1 deletion(-)
d8f823
d8f823
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
d8f823
index c0e3a1e7389d..e13ac84b56c6 100644
d8f823
--- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
d8f823
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
d8f823
@@ -869,7 +869,7 @@ static void dr_ste_copy_mask_misc(char *mask, struct mlx5dr_match_misc *spec)
d8f823
 
d8f823
 static void dr_ste_copy_mask_spec(char *mask, struct mlx5dr_match_spec *spec)
d8f823
 {
d8f823
-	u32 raw_ip[4];
d8f823
+	__be32 raw_ip[4];
d8f823
 
d8f823
 	spec->smac_47_16 = MLX5_GET(fte_match_set_lyr_2_4, mask, smac_47_16);
d8f823
 
d8f823
-- 
d8f823
2.13.6
d8f823