net: dsa: make unexported dsa_link_touch() static
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Tue, 17 Dec 2019 11:20:38 +0000 (11:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 06:40:39 +0000 (22:40 -0800)
dsa_link_touch() is not exported, or defined outside of the
file it is in so make it static to avoid the following warning:

net/dsa/dsa2.c:127:17: warning: symbol 'dsa_link_touch' was not declared. Should it be static?

Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c

index 9ef2caa13f278e50ac2d88f583ed542aef1c4768..c66abbed4daf21f650f86e4d073c51657854d9b7 100644 (file)
@@ -124,7 +124,8 @@ static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst,
        return NULL;
 }
 
-struct dsa_link *dsa_link_touch(struct dsa_port *dp, struct dsa_port *link_dp)
+static struct dsa_link *dsa_link_touch(struct dsa_port *dp,
+                                      struct dsa_port *link_dp)
 {
        struct dsa_switch *ds = dp->ds;
        struct dsa_switch_tree *dst;