Blame SOURCES/0293-netdrv-net-mlx5-DR-Fix-incorrect-type-in-argument.patch

d8f823
From 94516ebcf10eb8e9395e656fe7a241e16ed37ef5 Mon Sep 17 00:00:00 2001
d8f823
From: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Date: Mon, 1 Jun 2020 15:40:46 -0400
d8f823
Subject: [PATCH 293/312] [netdrv] net/mlx5: DR: Fix incorrect type in argument
d8f823
d8f823
Message-id: <20200601154102.25980-24-ahleihel@redhat.com>
d8f823
Patchwork-id: 315727
d8f823
Patchwork-instance: patchwork
d8f823
O-Subject: [RHEL8.3 BZ 1842258 23/39] net/mlx5: DR: Fix incorrect type in argument
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 618f88c4c40a9621a3105f3ff957a91a148e7d94
d8f823
Author: Saeed Mahameed <saeedm@mellanox.com>
d8f823
Date:   Thu May 28 01:02:08 2020 -0700
d8f823
d8f823
    net/mlx5: DR: Fix incorrect type in argument
d8f823
d8f823
    HW spec objects should receive a void ptr to work on, the MLX5_SET/GET
d8f823
    macro will know how to handle it.
d8f823
d8f823
    No need to provide explicit or wrong pointer type in this case.
d8f823
d8f823
    warning: incorrect type in argument 1 (different base types)
d8f823
        expected unsigned long long const [usertype] *sw_action
d8f823
        got restricted __be64 [usertype] *[assigned] sw_action
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_action.c | 2 +-
d8f823
 1 file changed, 1 insertion(+), 1 deletion(-)
d8f823
d8f823
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c
d8f823
index 1d90378b155c..c3cc01f93672 100644
d8f823
--- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c
d8f823
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c
d8f823
@@ -1644,7 +1644,7 @@ dr_action_modify_check_field_limitation(struct mlx5dr_action *action,
d8f823
 }
d8f823
 
d8f823
 static bool
d8f823
-dr_action_modify_check_is_ttl_modify(const u64 *sw_action)
d8f823
+dr_action_modify_check_is_ttl_modify(const void *sw_action)
d8f823
 {
d8f823
 	u16 sw_field = MLX5_GET(set_action_in, sw_action, field);
d8f823
 
d8f823
-- 
d8f823
2.13.6
d8f823