projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cac530
)
sit: make function ipip6_valid_ip_proto() static
author
Wei Yongjun
<weiyj.lk@gmail.com>
Sat, 13 Aug 2016 01:54:15 +0000
(
01:54
+0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 13 Aug 2016 04:52:18 +0000
(21:52 -0700)
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>
net/ipv6/sit.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/sit.c
b/net/ipv6/sit.c
index 696edeeff8bc12bbe8e4c1c751d7fbcad5bf8780..b1cdf8009d29c4a36a9c7f3f545930134b0d51d5 100644
(file)
--- 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 ||