]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: mr: Make the function mlxsw_sp_mr_dev_vif_lookup static
authorYotam Gigi <yotamg@mellanox.com>
Tue, 24 Oct 2017 09:17:16 +0000 (11:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 10:07:13 +0000 (19:07 +0900)
commit66de0ae02a98201dc4ca7704b1297057364ba6b8
treeb736912a3047e56853fd20489d845407b2310fca
parent1016d1fd5bfa43f1cd7cb874828511b2b883623d
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: 7b29ed8aec47 ("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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c