浏览代码

[UDP]: Mark udp_port_rover static.

It is not referenced outside of net/ipv4/udp.c any longer.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 年之前
父节点
当前提交
bed53ea7fe
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      net/ipv4/udp.c

+ 1 - 2
net/ipv4/udp.c

@@ -118,8 +118,7 @@ DEFINE_SNMP_STAT(struct udp_mib, udp_statistics) __read_mostly;
 struct hlist_head udp_hash[UDP_HTABLE_SIZE];
 struct hlist_head udp_hash[UDP_HTABLE_SIZE];
 DEFINE_RWLOCK(udp_hash_lock);
 DEFINE_RWLOCK(udp_hash_lock);
 
 
-/* Shared by v4/v6 udp_get_port */
-int udp_port_rover;
+static int udp_port_rover;
 
 
 static inline int udp_lport_inuse(u16 num)
 static inline int udp_lport_inuse(u16 num)
 {
 {