Blame SOURCES/0253-netdrv-net-mlx5-Add-missing-inline-to-stub-esw_add_r.patch

d8f823
From bff2d3c5ff056e1fec3983f032b93f35ac4d8560 Mon Sep 17 00:00:00 2001
d8f823
From: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Date: Tue, 19 May 2020 07:49:15 -0400
d8f823
Subject: [PATCH 253/312] [netdrv] net/mlx5: Add missing inline to stub
d8f823
 esw_add_restore_rule
d8f823
d8f823
Message-id: <20200519074934.6303-45-ahleihel@redhat.com>
d8f823
Patchwork-id: 310548
d8f823
Patchwork-instance: patchwork
d8f823
O-Subject: [RHEL8.3 BZ 1663246 44/63] net/mlx5: Add missing inline to stub esw_add_restore_rule
d8f823
Bugzilla: 1663246
d8f823
RH-Acked-by: Marcelo Leitner <mleitner@redhat.com>
d8f823
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
d8f823
RH-Acked-by: John Linville <linville@redhat.com>
d8f823
RH-Acked-by: Ivan Vecera <ivecera@redhat.com>
d8f823
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
d8f823
RH-Acked-by: Kamal Heib <kheib@redhat.com>
d8f823
d8f823
Bugzilla: http://bugzilla.redhat.com/1663246
d8f823
Upstream: v5.7-rc1
d8f823
d8f823
commit 9d3faa51bef05d21e908f2c1bd932a5cfac59b63
d8f823
Author: Nathan Chancellor <natechancellor@gmail.com>
d8f823
Date:   Fri Mar 13 20:40:20 2020 -0700
d8f823
d8f823
    net/mlx5: Add missing inline to stub esw_add_restore_rule
d8f823
d8f823
    When CONFIG_MLX5_ESWITCH is unset, clang warns:
d8f823
d8f823
    In file included from drivers/net/ethernet/mellanox/mlx5/core/main.c:58:
d8f823
    drivers/net/ethernet/mellanox/mlx5/core/eswitch.h:670:1: warning: unused
d8f823
    function 'esw_add_restore_rule' [-Wunused-function]
d8f823
    esw_add_restore_rule(struct mlx5_eswitch *esw, u32 tag)
d8f823
    ^
d8f823
    1 warning generated.
d8f823
d8f823
    This stub function is missing inline; add it to suppress the warning.
d8f823
d8f823
    Fixes: 11b717d61526 ("net/mlx5: E-Switch, Get reg_c0 value on CQE")
d8f823
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
d8f823
    Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
d8f823
    Signed-off-by: Saeed Mahameed <saeedm@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/eswitch.h | 2 +-
d8f823
 1 file changed, 1 insertion(+), 1 deletion(-)
d8f823
d8f823
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
d8f823
index 79e4dfa5368d..dafeb2000269 100644
d8f823
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
d8f823
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
d8f823
@@ -711,7 +711,7 @@ static inline const u32 *mlx5_esw_query_functions(struct mlx5_core_dev *dev)
d8f823
 
d8f823
 static inline void mlx5_eswitch_update_num_of_vfs(struct mlx5_eswitch *esw, const int num_vfs) {}
d8f823
 
d8f823
-static struct mlx5_flow_handle *
d8f823
+static inline struct mlx5_flow_handle *
d8f823
 esw_add_restore_rule(struct mlx5_eswitch *esw, u32 tag)
d8f823
 {
d8f823
 	return ERR_PTR(-EOPNOTSUPP);
d8f823
-- 
d8f823
2.13.6
d8f823