aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ping.c')
-rw-r--r--net/ipv4/ping.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
index d3a27165f9cc..cf9700b1a106 100644
--- a/net/ipv4/ping.c
+++ b/net/ipv4/ping.c
@@ -145,10 +145,12 @@ fail:
145} 145}
146EXPORT_SYMBOL_GPL(ping_get_port); 146EXPORT_SYMBOL_GPL(ping_get_port);
147 147
148void ping_hash(struct sock *sk) 148int ping_hash(struct sock *sk)
149{ 149{
150 pr_debug("ping_hash(sk->port=%u)\n", inet_sk(sk)->inet_num); 150 pr_debug("ping_hash(sk->port=%u)\n", inet_sk(sk)->inet_num);
151 BUG(); /* "Please do not press this button again." */ 151 BUG(); /* "Please do not press this button again." */
152
153 return 0;
152} 154}
153 155
154void ping_unhash(struct sock *sk) 156void ping_unhash(struct sock *sk)
@@ -1140,13 +1142,6 @@ static int ping_v4_seq_show(struct seq_file *seq, void *v)
1140 return 0; 1142 return 0;
1141} 1143}
1142 1144
1143static const struct seq_operations ping_v4_seq_ops = {
1144 .show = ping_v4_seq_show,
1145 .start = ping_v4_seq_start,
1146 .next = ping_seq_next,
1147 .stop = ping_seq_stop,
1148};
1149
1150static int ping_seq_open(struct inode *inode, struct file *file) 1145static int ping_seq_open(struct inode *inode, struct file *file)
1151{ 1146{
1152 struct ping_seq_afinfo *afinfo = PDE_DATA(inode); 1147 struct ping_seq_afinfo *afinfo = PDE_DATA(inode);