summaryrefslogtreecommitdiff
path: root/net/ipv6/sit.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-13 04:54:15 +0300
committerDavid S. Miller <davem@davemloft.net>2016-08-13 07:52:18 +0300
commit03ff4979345110d30ecdeab2ae9cb2f451f158bf (patch)
tree7215f191c13d344cbf4a557946c01c19387bfcf7 /net/ipv6/sit.c
parent7cac5303ee006b6092d42daa065bb541bda51dd2 (diff)
downloadlinux-03ff4979345110d30ecdeab2ae9cb2f451f158bf.tar.xz
sit: make function ipip6_valid_ip_proto() static
Fixes the following sparse warning: net/ipv6/sit.c:1129:6: warning: symbol 'ipip6_valid_ip_proto' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/sit.c')
-rw-r--r--net/ipv6/sit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index 696edeeff8bc..b1cdf8009d29 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1126,7 +1126,7 @@ static int ipip6_tunnel_update_6rd(struct ip_tunnel *t,
}
#endif
-bool ipip6_valid_ip_proto(u8 ipproto)
+static bool ipip6_valid_ip_proto(u8 ipproto)
{
return ipproto == IPPROTO_IPV6 ||
ipproto == IPPROTO_IPIP ||