summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-06-05 02:42:45 +0000
committerDavid S. Miller <davem@davemloft.net>2018-06-05 10:19:17 -0400
commit6f6027a52bfbb9bbf18937d2628eaf1137a5a386 (patch)
tree7d1a9980f55cf5aac07821f4b9667d964c199a4d /drivers
parent3602207ca6582dd359308b7bd2ce08348cc0854e (diff)
downloadlinux-stable-6f6027a52bfbb9bbf18937d2628eaf1137a5a386.tar.gz
linux-stable-6f6027a52bfbb9bbf18937d2628eaf1137a5a386.tar.bz2
linux-stable-6f6027a52bfbb9bbf18937d2628eaf1137a5a386.zip
net/mlx5e: Make function mlx5e_change_rep_mtu() static
Fixes the following sparse warning: drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:903:5: warning: symbol 'mlx5e_change_rep_mtu' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_rep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
index 3857f22b5500..57987f6546e8 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
@@ -900,7 +900,7 @@ static const struct switchdev_ops mlx5e_rep_switchdev_ops = {
.switchdev_port_attr_get = mlx5e_attr_get,
};
-int mlx5e_change_rep_mtu(struct net_device *netdev, int new_mtu)
+static int mlx5e_change_rep_mtu(struct net_device *netdev, int new_mtu)
{
return mlx5e_change_mtu(netdev, new_mtu, NULL);
}