diff mbox series

[net-next] net: dsa: Make dsa_master_set_mtu() static

Message ID 1544285191-23451-1-git-send-email-andrew@lunn.ch
State Accepted, archived
Delegated to: David Miller
Headers show
Series [net-next] net: dsa: Make dsa_master_set_mtu() static | expand

Commit Message

Andrew Lunn Dec. 8, 2018, 4:06 p.m. UTC
Add the missing static keyword.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
---
 net/dsa/master.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller Dec. 9, 2018, 5:39 a.m. UTC | #1
From: Andrew Lunn <andrew@lunn.ch>
Date: Sat,  8 Dec 2018 17:06:31 +0100

> Add the missing static keyword.
> 
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>

Applied.
diff mbox series

Patch

diff --git a/net/dsa/master.c b/net/dsa/master.c
index a25242e71fb2..d7d5145aa235 100644
--- a/net/dsa/master.c
+++ b/net/dsa/master.c
@@ -158,7 +158,7 @@  static void dsa_master_ethtool_teardown(struct net_device *dev)
 	cpu_dp->orig_ethtool_ops = NULL;
 }
 
-void dsa_master_set_mtu(struct net_device *dev, struct dsa_port *cpu_dp)
+static void dsa_master_set_mtu(struct net_device *dev, struct dsa_port *cpu_dp)
 {
 	unsigned int mtu = ETH_DATA_LEN + cpu_dp->tag_ops->overhead;
 	int err;