summaryrefslogtreecommitdiff
path: root/include/net/ping.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-04-10 20:04:20 +0200
committerChristoph Hellwig <hch@lst.de>2018-05-16 07:23:35 +0200
commitf455022166b57c8693897334508dfa75d3b62b38 (patch)
tree36fee3d300e0d74a0d9984d4781f50feaf64d091 /include/net/ping.h
parent37d849bb4294e22d5250264e82beaf4dd8a5403c (diff)
ipv{4,6}/ping: simplify proc file creation
Remove the pointless ping_seq_afinfo indirection and make the code look like most other protocols. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/net/ping.h')
-rw-r--r--include/net/ping.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/net/ping.h b/include/net/ping.h
index 4cd90d6b5c25..fd080e043a6e 100644
--- a/include/net/ping.h
+++ b/include/net/ping.h
@@ -83,20 +83,9 @@ int ping_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
bool ping_rcv(struct sk_buff *skb);
#ifdef CONFIG_PROC_FS
-struct ping_seq_afinfo {
- char *name;
- sa_family_t family;
- const struct file_operations *seq_fops;
- const struct seq_operations seq_ops;
-};
-
-extern const struct file_operations ping_seq_fops;
-
void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family);
void *ping_seq_next(struct seq_file *seq, void *v, loff_t *pos);
void ping_seq_stop(struct seq_file *seq, void *v);
-int ping_proc_register(struct net *net, struct ping_seq_afinfo *afinfo);
-void ping_proc_unregister(struct net *net, struct ping_seq_afinfo *afinfo);
int __init ping_proc_init(void);
void ping_proc_exit(void);