浏览代码

ip_tunnel: fix sparse non static symbol warning

Fixes the following sparse warning:

net/ipv4/ip_tunnel.c:116:18: warning:
 symbol 'tunnel_dst_check' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Wei Yongjun 11 年之前
父节点
当前提交
d0eb1f7e66
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/ipv4/ip_tunnel.c

+ 1 - 1
net/ipv4/ip_tunnel.c

@@ -113,7 +113,7 @@ static inline struct dst_entry *tunnel_dst_get(struct ip_tunnel *t)
 	return dst;
 	return dst;
 }
 }
 
 
-struct dst_entry *tunnel_dst_check(struct ip_tunnel *t, u32 cookie)
+static struct dst_entry *tunnel_dst_check(struct ip_tunnel *t, u32 cookie)
 {
 {
 	struct dst_entry *dst = tunnel_dst_get(t);
 	struct dst_entry *dst = tunnel_dst_get(t);