From: Ben Dooks (Codethink) Date: Tue, 17 Dec 2019 11:20:38 +0000 (+0000) Subject: net: dsa: make unexported dsa_link_touch() static X-Git-Tag: v5.15~4840^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e2ce6e55050125d313408770d20dbf387dfc79c;p=platform%2Fkernel%2Flinux-starfive.git net: dsa: make unexported dsa_link_touch() static 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) Signed-off-by: David S. Miller --- diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 9ef2caa..c66abbe 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c @@ -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;