提交 03ff4979 编写于 作者: W Wei Yongjun 提交者: David S. Miller

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: NWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7cac5303
...@@ -1126,7 +1126,7 @@ static int ipip6_tunnel_update_6rd(struct ip_tunnel *t, ...@@ -1126,7 +1126,7 @@ static int ipip6_tunnel_update_6rd(struct ip_tunnel *t,
} }
#endif #endif
bool ipip6_valid_ip_proto(u8 ipproto) static bool ipip6_valid_ip_proto(u8 ipproto)
{ {
return ipproto == IPPROTO_IPV6 || return ipproto == IPPROTO_IPV6 ||
ipproto == IPPROTO_IPIP || ipproto == IPPROTO_IPIP ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册