summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
diff options
context:
space:
mode:
authorYotam Gigi <yotamg@mellanox.com>2017-10-24 11:17:16 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-24 19:07:13 +0900
commit6a30dc29a450566e9c8e07dd16c05b11cb41be20 (patch)
treeb736912a3047e56853fd20489d845407b2310fca /drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
parentde3872cd1863dcd077e966dd467f8e50876302aa (diff)
downloadtalos-op-linux-6a30dc29a450566e9c8e07dd16c05b11cb41be20.tar.gz
talos-op-linux-6a30dc29a450566e9c8e07dd16c05b11cb41be20.zip
mlxsw: spectrum: mr: Make the function mlxsw_sp_mr_dev_vif_lookup static
The function is only used internally in spectrum_mr.c and is not declared in the header file, thus make it static. Cleans up sparse warning: symbol 'mlxsw_sp_mr_dev_vif_lookup' was not declared. Should it be static? Fixes: c011ec1bbfd6 ("mlxsw: spectrum: Add the multicast routing offloading logic") Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
index 3f7d2d1282b2..d20b143de3b4 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c
@@ -768,7 +768,7 @@ void mlxsw_sp_mr_vif_del(struct mlxsw_sp_mr_table *mr_table, vifi_t vif_index)
mlxsw_sp_mr_vif_unresolve(mr_table, NULL, mr_vif);
}
-struct mlxsw_sp_mr_vif *
+static struct mlxsw_sp_mr_vif *
mlxsw_sp_mr_dev_vif_lookup(struct mlxsw_sp_mr_table *mr_table,
const struct net_device *dev)
{
OpenPOWER on IntegriCloud