mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
net: delete /proc THIS_MODULE references
/proc has been ignoring struct file_operations::owner field for 10 years.
Specifically, it started with commit 786d7e1612
("Fix rmmod/read/write races in /proc entries"). Notice the chunk where
inode->i_fop is initialized with proxy struct file_operations for
regular files:
- if (de->proc_fops)
- inode->i_fop = de->proc_fops;
+ if (de->proc_fops) {
+ if (S_ISREG(inode->i_mode))
+ inode->i_fop = &proc_reg_file_ops;
+ else
+ inode->i_fop = de->proc_fops;
+ }
VFS stopped pinning module at this point.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
868717ae73
commit
96890d6252
@ -80,7 +80,6 @@ static int vlan_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations vlan_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = vlan_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -97,7 +96,6 @@ static int vlandev_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations vlandev_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = vlandev_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1047,7 +1047,6 @@ static int aarp_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations atalk_seq_arp_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = aarp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -226,7 +226,6 @@ static int atalk_seq_socket_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations atalk_seq_interface_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = atalk_seq_interface_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -234,7 +233,6 @@ static const struct file_operations atalk_seq_interface_fops = {
|
||||
};
|
||||
|
||||
static const struct file_operations atalk_seq_route_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = atalk_seq_route_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -242,7 +240,6 @@ static const struct file_operations atalk_seq_route_fops = {
|
||||
};
|
||||
|
||||
static const struct file_operations atalk_seq_socket_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = atalk_seq_socket_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -824,7 +824,6 @@ static int br2684_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations br2684_proc_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = br2684_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -992,7 +992,6 @@ static int lec_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations lec_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = lec_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -57,7 +57,6 @@ static int parse_qos(const char *buff);
|
||||
* Define allowed FILE OPERATIONS
|
||||
*/
|
||||
static const struct file_operations mpc_file_operations = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = proc_mpc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -37,7 +37,6 @@ static ssize_t proc_dev_atm_read(struct file *file, char __user *buf,
|
||||
size_t count, loff_t *pos);
|
||||
|
||||
static const struct file_operations proc_atm_dev_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = proc_dev_atm_read,
|
||||
.llseek = noop_llseek,
|
||||
};
|
||||
|
@ -1931,7 +1931,6 @@ static int ax25_info_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ax25_info_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ax25_info_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -336,7 +336,6 @@ static int ax25_rt_info_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations ax25_route_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ax25_rt_info_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -194,7 +194,6 @@ static int ax25_uid_info_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations ax25_uid_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ax25_uid_info_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -527,7 +527,6 @@ static int cmtp_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations cmtp_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = cmtp_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -246,7 +246,6 @@ static int bcm_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations bcm_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = bcm_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -276,7 +276,6 @@ static int can_stats_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations can_stats_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = can_stats_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -310,7 +309,6 @@ static int can_reset_stats_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations can_reset_stats_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = can_reset_stats_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -329,7 +327,6 @@ static int can_version_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations can_version_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = can_version_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -382,7 +379,6 @@ static int can_rcvlist_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations can_rcvlist_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = can_rcvlist_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -450,7 +446,6 @@ static int can_rcvlist_sff_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations can_rcvlist_sff_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = can_rcvlist_sff_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -494,7 +489,6 @@ static int can_rcvlist_eff_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations can_rcvlist_eff_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = can_rcvlist_eff_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2862,7 +2862,6 @@ static int neigh_stat_seq_open(struct inode *inode, struct file *file)
|
||||
};
|
||||
|
||||
static const struct file_operations neigh_stat_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = neigh_stat_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -182,7 +182,6 @@ static int dev_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations dev_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = dev_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -202,7 +201,6 @@ static int softnet_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations softnet_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = softnet_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -306,7 +304,6 @@ static int ptype_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ptype_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ptype_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -387,7 +384,6 @@ static int dev_mc_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations dev_mc_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = dev_mc_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -523,7 +523,6 @@ static int pgctrl_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations pktgen_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pgctrl_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -1804,7 +1803,6 @@ static int pktgen_if_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations pktgen_if_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pktgen_if_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -1942,7 +1940,6 @@ static int pktgen_thread_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations pktgen_thread_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pktgen_thread_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -3362,7 +3362,6 @@ static int proto_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations proto_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = proto_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2320,7 +2320,6 @@ static int dn_socket_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations dn_socket_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = dn_socket_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1389,7 +1389,6 @@ static int dn_dev_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations dn_dev_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = dn_dev_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -597,7 +597,6 @@ static int dn_neigh_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations dn_neigh_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = dn_neigh_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1860,7 +1860,6 @@ static int dn_rt_cache_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations dn_rt_cache_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = dn_rt_cache_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1420,7 +1420,6 @@ static int arp_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations arp_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = arp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2334,7 +2334,6 @@ static int fib_triestat_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations fib_triestat_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = fib_triestat_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -2521,7 +2520,6 @@ static int fib_trie_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations fib_trie_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = fib_trie_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -2715,7 +2713,6 @@ static int fib_route_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations fib_route_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = fib_route_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2832,7 +2832,6 @@ static int igmp_mc_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations igmp_mc_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = igmp_mc_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -2979,7 +2978,6 @@ static int igmp_mcf_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations igmp_mcf_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = igmp_mcf_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1322,7 +1322,6 @@ static int pnp_seq_open(struct inode *indoe, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations pnp_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pnp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -3045,7 +3045,6 @@ static int ipmr_vif_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ipmr_vif_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ipmr_vif_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -3198,7 +3197,6 @@ static int ipmr_mfc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ipmr_mfc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ipmr_mfc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -776,7 +776,6 @@ static ssize_t clusterip_proc_write(struct file *file, const char __user *input,
|
||||
}
|
||||
|
||||
static const struct file_operations clusterip_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = clusterip_proc_open,
|
||||
.read = seq_read,
|
||||
.write = clusterip_proc_write,
|
||||
|
@ -83,7 +83,6 @@ static int sockstat_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations sockstat_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = sockstat_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -467,7 +466,6 @@ static int snmp_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations snmp_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = snmp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -515,7 +513,6 @@ static int netstat_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations netstat_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = netstat_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1119,7 +1119,6 @@ static int raw_v4_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations raw_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = raw_v4_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -240,7 +240,6 @@ static int rt_cache_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations rt_cache_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rt_cache_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -331,7 +330,6 @@ static int rt_cpu_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations rt_cpu_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rt_cpu_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -369,7 +367,6 @@ static int rt_acct_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations rt_acct_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rt_acct_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2358,7 +2358,6 @@ out:
|
||||
}
|
||||
|
||||
static const struct file_operations tcp_afinfo_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = tcp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2714,7 +2714,6 @@ int udp4_seq_show(struct seq_file *seq, void *v)
|
||||
}
|
||||
|
||||
static const struct file_operations udp_afinfo_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = udp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -75,7 +75,6 @@ static struct inet_protosw udplite4_protosw = {
|
||||
#ifdef CONFIG_PROC_FS
|
||||
|
||||
static const struct file_operations udplite_afinfo_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = udp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -4214,7 +4214,6 @@ static int if6_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations if6_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = if6_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -533,7 +533,6 @@ static int ac6_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ac6_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ac6_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -836,7 +836,6 @@ static int ip6fl_seq_release(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ip6fl_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ip6fl_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -477,7 +477,6 @@ static int ip6mr_vif_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ip6mr_vif_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ip6mr_vif_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -609,7 +608,6 @@ static int ipmr_mfc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ip6mr_mfc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ipmr_mfc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2758,7 +2758,6 @@ static int igmp6_mc_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations igmp6_mc_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = igmp6_mc_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -2913,7 +2912,6 @@ static int igmp6_mcf_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations igmp6_mcf_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = igmp6_mcf_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -58,7 +58,6 @@ static int sockstat6_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations sockstat6_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = sockstat6_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -248,7 +247,6 @@ static int snmp6_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations snmp6_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = snmp6_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -274,7 +272,6 @@ static int snmp6_dev_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations snmp6_dev_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = snmp6_dev_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1308,7 +1308,6 @@ static int raw6_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations raw6_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = raw6_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -4648,7 +4648,6 @@ static int ip6_route_dev_notify(struct notifier_block *this,
|
||||
#ifdef CONFIG_PROC_FS
|
||||
|
||||
static const struct file_operations ipv6_route_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ipv6_route_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -4676,7 +4675,6 @@ static int rt6_stats_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations rt6_stats_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rt6_stats_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1883,7 +1883,6 @@ out:
|
||||
}
|
||||
|
||||
static const struct file_operations tcp6_afinfo_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = tcp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1479,7 +1479,6 @@ int udp6_seq_show(struct seq_file *seq, void *v)
|
||||
}
|
||||
|
||||
static const struct file_operations udp6_afinfo_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = udp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -94,7 +94,6 @@ void udplitev6_exit(void)
|
||||
#ifdef CONFIG_PROC_FS
|
||||
|
||||
static const struct file_operations udplite6_afinfo_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = udp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -260,7 +260,6 @@ static int ipx_seq_socket_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations ipx_seq_interface_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ipx_seq_interface_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -268,7 +267,6 @@ static const struct file_operations ipx_seq_interface_fops = {
|
||||
};
|
||||
|
||||
static const struct file_operations ipx_seq_route_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ipx_seq_route_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -276,7 +274,6 @@ static const struct file_operations ipx_seq_route_fops = {
|
||||
};
|
||||
|
||||
static const struct file_operations ipx_seq_socket_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ipx_seq_socket_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -247,7 +247,6 @@ static int kcm_seq_show(struct seq_file *seq, void *v)
|
||||
}
|
||||
|
||||
static const struct file_operations kcm_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = kcm_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -397,7 +396,6 @@ static int kcm_stats_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations kcm_stats_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = kcm_stats_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1734,7 +1734,6 @@ static int pppol2tp_proc_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations pppol2tp_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pppol2tp_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -225,7 +225,6 @@ static int llc_seq_core_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations llc_seq_socket_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = llc_seq_socket_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -233,7 +232,6 @@ static const struct file_operations llc_seq_socket_fops = {
|
||||
};
|
||||
|
||||
static const struct file_operations llc_seq_core_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = llc_seq_core_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2637,7 +2637,6 @@ static int netlink_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations netlink_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = netlink_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1344,7 +1344,6 @@ static int nr_info_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations nr_info_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = nr_info_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -901,7 +901,6 @@ static int nr_node_info_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations nr_nodes_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = nr_node_info_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -968,7 +967,6 @@ static int nr_neigh_info_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations nr_neigh_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = nr_neigh_info_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -4531,7 +4531,6 @@ static int packet_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations packet_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = packet_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -635,7 +635,6 @@ static int pn_sock_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations pn_sock_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pn_sock_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -818,7 +817,6 @@ static int pn_res_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations pn_res_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pn_res_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1461,7 +1461,6 @@ static int rose_info_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations rose_info_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rose_info_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -1156,7 +1156,6 @@ static int rose_nodes_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations rose_nodes_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rose_nodes_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -1240,7 +1239,6 @@ static int rose_neigh_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations rose_neigh_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rose_neigh_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -1326,7 +1324,6 @@ static int rose_route_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations rose_routes_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rose_route_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -125,7 +125,6 @@ static int rxrpc_call_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations rxrpc_call_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rxrpc_call_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@ -217,7 +216,6 @@ static int rxrpc_connection_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
const struct file_operations rxrpc_connection_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = rxrpc_connection_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2046,7 +2046,6 @@ static int psched_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations psched_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = psched_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -95,7 +95,6 @@ static int sctp_snmp_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations sctp_snmp_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = sctp_snmp_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -2869,7 +2869,6 @@ static int unix_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations unix_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = unix_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -133,7 +133,6 @@ static int seq_open_wireless(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations wireless_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = seq_open_wireless,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@ -71,7 +71,6 @@ static int xfrm_statistics_seq_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
static const struct file_operations xfrm_statistics_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = xfrm_statistics_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
Loading…
Reference in New Issue
Block a user