Skip to content

Commit df95ae6

Browse files
pmachatadavem330
authored andcommitted
mlxsw: spectrum_router: Privatize mlxsw_sp_rif_dev()
Now that the external users of mlxsw_sp_rif_dev() have been converted in the preceding patches, make the function static. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Amit Cohen <amcohen@nvidia.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5374a50 commit df95ae6

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8075,7 +8075,7 @@ int mlxsw_sp_rif_dev_ifindex(const struct mlxsw_sp_rif *rif)
80758075
return rif->dev->ifindex;
80768076
}
80778077

8078-
const struct net_device *mlxsw_sp_rif_dev(const struct mlxsw_sp_rif *rif)
8078+
static const struct net_device *mlxsw_sp_rif_dev(const struct mlxsw_sp_rif *rif)
80798079
{
80808080
return rif->dev;
80818081
}

drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ u16 mlxsw_sp_ipip_lb_ul_vr_id(const struct mlxsw_sp_rif_ipip_lb *rif);
9393
u16 mlxsw_sp_ipip_lb_ul_rif_id(const struct mlxsw_sp_rif_ipip_lb *lb_rif);
9494
u32 mlxsw_sp_ipip_dev_ul_tb_id(const struct net_device *ol_dev);
9595
int mlxsw_sp_rif_dev_ifindex(const struct mlxsw_sp_rif *rif);
96-
const struct net_device *mlxsw_sp_rif_dev(const struct mlxsw_sp_rif *rif);
9796
bool mlxsw_sp_rif_has_dev(const struct mlxsw_sp_rif *rif);
9897
bool mlxsw_sp_rif_dev_is(const struct mlxsw_sp_rif *rif,
9998
const struct net_device *dev);

0 commit comments

Comments
 (0)