Skip to content

Commit

Permalink
net: dsa: make unexported dsa_link_touch() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks (Codethink) authored and David S. Miller committed Dec 18, 2019
1 parent 9d4b98a commit 4e2ce6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/dsa/dsa2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e2ce6e

Please sign in to comment.