From: Wei Yongjun Date: Sat, 13 Aug 2016 01:54:15 +0000 (+0000) Subject: sit: make function ipip6_valid_ip_proto() static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03ff4979345110d30ecdeab2ae9cb2f451f158bf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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 ||