Skip to content

Commit

Permalink
net: mpls: make function ipgre_mpls_encap_hlen static
Browse files Browse the repository at this point in the history
The function ipgre_mpls_encap_hlen is local to the source and
does not need to be in global scope, so make it static.

Cleans up sparse warning:
symbol 'ipgre_mpls_encap_hlen' was not declared. Should it be static?

Fixes: bdc4764 ("ip_tunnel: add mpls over gre support")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Colin Ian King authored and davem330 committed Oct 12, 2017
1 parent 1a37b77 commit 14c68c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mpls/af_mpls.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static int label_limit = (1 << 20) - 1;
static int ttl_max = 255;

#if IS_ENABLED(CONFIG_NET_IP_TUNNEL)
size_t ipgre_mpls_encap_hlen(struct ip_tunnel_encap *e)
static size_t ipgre_mpls_encap_hlen(struct ip_tunnel_encap *e)
{
return sizeof(struct mpls_shim_hdr);
}
Expand Down

0 comments on commit 14c68c4

Please sign in to comment.