diff options
Diffstat (limited to 'net/ipv4/ipmr.c')
| -rw-r--r-- | net/ipv4/ipmr.c | 35 | 
1 files changed, 6 insertions, 29 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 2fb4de3f7f66..9f79b9803a16 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c @@ -201,7 +201,8 @@ static const struct nla_policy ipmr_rule_policy[FRA_MAX + 1] = {  };  static int ipmr_rule_configure(struct fib_rule *rule, struct sk_buff *skb, -			       struct fib_rule_hdr *frh, struct nlattr **tb) +			       struct fib_rule_hdr *frh, struct nlattr **tb, +			       struct netlink_ext_ack *extack)  {  	return 0;  } @@ -2828,19 +2829,6 @@ static const struct seq_operations ipmr_vif_seq_ops = {  	.show  = ipmr_vif_seq_show,  }; -static int ipmr_vif_open(struct inode *inode, struct file *file) -{ -	return seq_open_net(inode, file, &ipmr_vif_seq_ops, -			    sizeof(struct mr_vif_iter)); -} - -static const struct file_operations ipmr_vif_fops = { -	.open    = ipmr_vif_open, -	.read    = seq_read, -	.llseek  = seq_lseek, -	.release = seq_release_net, -}; -  static void *ipmr_mfc_seq_start(struct seq_file *seq, loff_t *pos)  {  	struct net *net = seq_file_net(seq); @@ -2900,19 +2888,6 @@ static const struct seq_operations ipmr_mfc_seq_ops = {  	.stop  = mr_mfc_seq_stop,  	.show  = ipmr_mfc_seq_show,  }; - -static int ipmr_mfc_open(struct inode *inode, struct file *file) -{ -	return seq_open_net(inode, file, &ipmr_mfc_seq_ops, -			    sizeof(struct mr_mfc_iter)); -} - -static const struct file_operations ipmr_mfc_fops = { -	.open    = ipmr_mfc_open, -	.read    = seq_read, -	.llseek  = seq_lseek, -	.release = seq_release_net, -};  #endif  #ifdef CONFIG_IP_PIMSM_V2 @@ -2977,9 +2952,11 @@ static int __net_init ipmr_net_init(struct net *net)  #ifdef CONFIG_PROC_FS  	err = -ENOMEM; -	if (!proc_create("ip_mr_vif", 0, net->proc_net, &ipmr_vif_fops)) +	if (!proc_create_net("ip_mr_vif", 0, net->proc_net, &ipmr_vif_seq_ops, +			sizeof(struct mr_vif_iter)))  		goto proc_vif_fail; -	if (!proc_create("ip_mr_cache", 0, net->proc_net, &ipmr_mfc_fops)) +	if (!proc_create_net("ip_mr_cache", 0, net->proc_net, &ipmr_mfc_seq_ops, +			sizeof(struct mr_mfc_iter)))  		goto proc_cache_fail;  #endif  	return 0;  |