summaryrefslogtreecommitdiffstats
path: root/net/ipv6/anycast.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/anycast.c')
-rw-r--r--net/ipv6/anycast.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c
index bbcabbba9bd8..ebeaf47d5c8d 100644
--- a/net/ipv6/anycast.c
+++ b/net/ipv6/anycast.c
@@ -529,22 +529,10 @@ static const struct seq_operations ac6_seq_ops = {
529 .show = ac6_seq_show, 529 .show = ac6_seq_show,
530}; 530};
531 531
532static int ac6_seq_open(struct inode *inode, struct file *file)
533{
534 return seq_open_net(inode, file, &ac6_seq_ops,
535 sizeof(struct ac6_iter_state));
536}
537
538static const struct file_operations ac6_seq_fops = {
539 .open = ac6_seq_open,
540 .read = seq_read,
541 .llseek = seq_lseek,
542 .release = seq_release_net,
543};
544
545int __net_init ac6_proc_init(struct net *net) 532int __net_init ac6_proc_init(struct net *net)
546{ 533{
547 if (!proc_create("anycast6", 0444, net->proc_net, &ac6_seq_fops)) 534 if (!proc_create_net("anycast6", 0444, net->proc_net, &ac6_seq_ops,
535 sizeof(struct ac6_iter_state)))
548 return -ENOMEM; 536 return -ENOMEM;
549 537
550 return 0; 538 return 0;