netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: dsa: Make dsa_master_set_mtu() static
@ 2018-12-08 16:06 Andrew Lunn
  2018-12-09  5:39 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Lunn @ 2018-12-08 16:06 UTC (permalink / raw)
  To: David Miller; +Cc: Florian Fainelli, Vivien Didelot, netdev, Andrew Lunn

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(-)

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;
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] net: dsa: Make dsa_master_set_mtu() static
  2018-12-08 16:06 [PATCH net-next] net: dsa: Make dsa_master_set_mtu() static Andrew Lunn
@ 2018-12-09  5:39 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-12-09  5:39 UTC (permalink / raw)
  To: andrew; +Cc: f.fainelli, vivien.didelot, netdev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-09  5:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-08 16:06 [PATCH net-next] net: dsa: Make dsa_master_set_mtu() static Andrew Lunn
2018-12-09  5:39 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).