diff options
-rw-r--r-- | net/ipv4/ping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index a77e2d788dac..7041d09ae5d5 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c | |||
@@ -49,9 +49,9 @@ | |||
49 | #include <net/checksum.h> | 49 | #include <net/checksum.h> |
50 | 50 | ||
51 | 51 | ||
52 | struct ping_table ping_table __read_mostly; | 52 | static struct ping_table ping_table; |
53 | 53 | ||
54 | u16 ping_port_rover; | 54 | static u16 ping_port_rover; |
55 | 55 | ||
56 | static inline int ping_hashfn(struct net *net, unsigned num, unsigned mask) | 56 | static inline int ping_hashfn(struct net *net, unsigned num, unsigned mask) |
57 | { | 57 | { |
@@ -150,8 +150,8 @@ static void ping_v4_unhash(struct sock *sk) | |||
150 | } | 150 | } |
151 | } | 151 | } |
152 | 152 | ||
153 | struct sock *ping_v4_lookup(struct net *net, u32 saddr, u32 daddr, | 153 | static struct sock *ping_v4_lookup(struct net *net, u32 saddr, u32 daddr, |
154 | u16 ident, int dif) | 154 | u16 ident, int dif) |
155 | { | 155 | { |
156 | struct hlist_nulls_head *hslot = ping_hashslot(&ping_table, net, ident); | 156 | struct hlist_nulls_head *hslot = ping_hashslot(&ping_table, net, ident); |
157 | struct sock *sk = NULL; | 157 | struct sock *sk = NULL; |