aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2018-01-15 16:42:40 -0500
committerDavid S. Miller <davem@davemloft.net>2018-01-16 15:01:33 -0500
commit96890d62523c2cddc2c053ad29de35c4d935cf11 (patch)
treec849442ebd9ae2f90531c8d127ec027790f5675d /net
parent868717ae73c5ad297b91fb52db1396f2336609a8 (diff)
net: delete /proc THIS_MODULE references
/proc has been ignoring struct file_operations::owner field for 10 years. Specifically, it started with commit 786d7e1612f0b0adb6046f19b906609e4fe8b1ba ("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>
Diffstat (limited to 'net')
-rw-r--r--net/8021q/vlanproc.c2
-rw-r--r--net/appletalk/aarp.c1
-rw-r--r--net/appletalk/atalk_proc.c3
-rw-r--r--net/atm/br2684.c1
-rw-r--r--net/atm/lec.c1
-rw-r--r--net/atm/mpoa_proc.c1
-rw-r--r--net/atm/proc.c1
-rw-r--r--net/ax25/af_ax25.c1
-rw-r--r--net/ax25/ax25_route.c1
-rw-r--r--net/ax25/ax25_uid.c1
-rw-r--r--net/bluetooth/cmtp/capi.c1
-rw-r--r--net/can/bcm.c1
-rw-r--r--net/can/proc.c6
-rw-r--r--net/core/neighbour.c1
-rw-r--r--net/core/net-procfs.c4
-rw-r--r--net/core/pktgen.c3
-rw-r--r--net/core/sock.c1
-rw-r--r--net/decnet/af_decnet.c1
-rw-r--r--net/decnet/dn_dev.c1
-rw-r--r--net/decnet/dn_neigh.c1
-rw-r--r--net/decnet/dn_route.c1
-rw-r--r--net/ipv4/arp.c1
-rw-r--r--net/ipv4/fib_trie.c3
-rw-r--r--net/ipv4/igmp.c2
-rw-r--r--net/ipv4/ipconfig.c1
-rw-r--r--net/ipv4/ipmr.c2
-rw-r--r--net/ipv4/netfilter/ipt_CLUSTERIP.c1
-rw-r--r--net/ipv4/proc.c3
-rw-r--r--net/ipv4/raw.c1
-rw-r--r--net/ipv4/route.c3
-rw-r--r--net/ipv4/tcp_ipv4.c1
-rw-r--r--net/ipv4/udp.c1
-rw-r--r--net/ipv4/udplite.c1
-rw-r--r--net/ipv6/addrconf.c1
-rw-r--r--net/ipv6/anycast.c1
-rw-r--r--net/ipv6/ip6_flowlabel.c1
-rw-r--r--net/ipv6/ip6mr.c2
-rw-r--r--net/ipv6/mcast.c2
-rw-r--r--net/ipv6/proc.c3
-rw-r--r--net/ipv6/raw.c1
-rw-r--r--net/ipv6/route.c2
-rw-r--r--net/ipv6/tcp_ipv6.c1
-rw-r--r--net/ipv6/udp.c1
-rw-r--r--net/ipv6/udplite.c1
-rw-r--r--net/ipx/ipx_proc.c3
-rw-r--r--net/kcm/kcmproc.c2
-rw-r--r--net/l2tp/l2tp_ppp.c1
-rw-r--r--net/llc/llc_proc.c2
-rw-r--r--net/netlink/af_netlink.c1
-rw-r--r--net/netrom/af_netrom.c1
-rw-r--r--net/netrom/nr_route.c2
-rw-r--r--net/packet/af_packet.c1
-rw-r--r--net/phonet/socket.c2
-rw-r--r--net/rose/af_rose.c1
-rw-r--r--net/rose/rose_route.c3
-rw-r--r--net/rxrpc/proc.c2
-rw-r--r--net/sched/sch_api.c1
-rw-r--r--net/sctp/proc.c1
-rw-r--r--net/unix/af_unix.c1
-rw-r--r--net/wireless/wext-proc.c1
-rw-r--r--net/xfrm/xfrm_proc.c1
61 files changed, 0 insertions, 96 deletions
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c
index 5f1446c9f098..a662ccc166df 100644
--- a/net/8021q/vlanproc.c
+++ b/net/8021q/vlanproc.c
@@ -80,7 +80,6 @@ static int vlan_seq_open(struct inode *inode, struct file *file)
80} 80}
81 81
82static const struct file_operations vlan_fops = { 82static const struct file_operations vlan_fops = {
83 .owner = THIS_MODULE,
84 .open = vlan_seq_open, 83 .open = vlan_seq_open,
85 .read = seq_read, 84 .read = seq_read,
86 .llseek = seq_lseek, 85 .llseek = seq_lseek,
@@ -97,7 +96,6 @@ static int vlandev_seq_open(struct inode *inode, struct file *file)
97} 96}
98 97
99static const struct file_operations vlandev_fops = { 98static const struct file_operations vlandev_fops = {
100 .owner = THIS_MODULE,
101 .open = vlandev_seq_open, 99 .open = vlandev_seq_open,
102 .read = seq_read, 100 .read = seq_read,
103 .llseek = seq_lseek, 101 .llseek = seq_lseek,
diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c
index 309d7dbb36e8..d4c1021e74e1 100644
--- a/net/appletalk/aarp.c
+++ b/net/appletalk/aarp.c
@@ -1047,7 +1047,6 @@ static int aarp_seq_open(struct inode *inode, struct file *file)
1047} 1047}
1048 1048
1049const struct file_operations atalk_seq_arp_fops = { 1049const struct file_operations atalk_seq_arp_fops = {
1050 .owner = THIS_MODULE,
1051 .open = aarp_seq_open, 1050 .open = aarp_seq_open,
1052 .read = seq_read, 1051 .read = seq_read,
1053 .llseek = seq_lseek, 1052 .llseek = seq_lseek,
diff --git a/net/appletalk/atalk_proc.c b/net/appletalk/atalk_proc.c
index af46bc49e1e9..a3bf9d519193 100644
--- a/net/appletalk/atalk_proc.c
+++ b/net/appletalk/atalk_proc.c
@@ -226,7 +226,6 @@ static int atalk_seq_socket_open(struct inode *inode, struct file *file)
226} 226}
227 227
228static const struct file_operations atalk_seq_interface_fops = { 228static const struct file_operations atalk_seq_interface_fops = {
229 .owner = THIS_MODULE,
230 .open = atalk_seq_interface_open, 229 .open = atalk_seq_interface_open,
231 .read = seq_read, 230 .read = seq_read,
232 .llseek = seq_lseek, 231 .llseek = seq_lseek,
@@ -234,7 +233,6 @@ static const struct file_operations atalk_seq_interface_fops = {
234}; 233};
235 234
236static const struct file_operations atalk_seq_route_fops = { 235static const struct file_operations atalk_seq_route_fops = {
237 .owner = THIS_MODULE,
238 .open = atalk_seq_route_open, 236 .open = atalk_seq_route_open,
239 .read = seq_read, 237 .read = seq_read,
240 .llseek = seq_lseek, 238 .llseek = seq_lseek,
@@ -242,7 +240,6 @@ static const struct file_operations atalk_seq_route_fops = {
242}; 240};
243 241
244static const struct file_operations atalk_seq_socket_fops = { 242static const struct file_operations atalk_seq_socket_fops = {
245 .owner = THIS_MODULE,
246 .open = atalk_seq_socket_open, 243 .open = atalk_seq_socket_open,
247 .read = seq_read, 244 .read = seq_read,
248 .llseek = seq_lseek, 245 .llseek = seq_lseek,
diff --git a/net/atm/br2684.c b/net/atm/br2684.c
index 4e111196f902..fd94bea36ee8 100644
--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -824,7 +824,6 @@ static int br2684_proc_open(struct inode *inode, struct file *file)
824} 824}
825 825
826static const struct file_operations br2684_proc_ops = { 826static const struct file_operations br2684_proc_ops = {
827 .owner = THIS_MODULE,
828 .open = br2684_proc_open, 827 .open = br2684_proc_open,
829 .read = seq_read, 828 .read = seq_read,
830 .llseek = seq_lseek, 829 .llseek = seq_lseek,
diff --git a/net/atm/lec.c b/net/atm/lec.c
index 6676e3433261..09a1f056712a 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -992,7 +992,6 @@ static int lec_seq_open(struct inode *inode, struct file *file)
992} 992}
993 993
994static const struct file_operations lec_seq_fops = { 994static const struct file_operations lec_seq_fops = {
995 .owner = THIS_MODULE,
996 .open = lec_seq_open, 995 .open = lec_seq_open,
997 .read = seq_read, 996 .read = seq_read,
998 .llseek = seq_lseek, 997 .llseek = seq_lseek,
diff --git a/net/atm/mpoa_proc.c b/net/atm/mpoa_proc.c
index 2212da9c2da2..b93cc0f18292 100644
--- a/net/atm/mpoa_proc.c
+++ b/net/atm/mpoa_proc.c
@@ -57,7 +57,6 @@ static int parse_qos(const char *buff);
57 * Define allowed FILE OPERATIONS 57 * Define allowed FILE OPERATIONS
58 */ 58 */
59static const struct file_operations mpc_file_operations = { 59static const struct file_operations mpc_file_operations = {
60 .owner = THIS_MODULE,
61 .open = proc_mpc_open, 60 .open = proc_mpc_open,
62 .read = seq_read, 61 .read = seq_read,
63 .llseek = seq_lseek, 62 .llseek = seq_lseek,
diff --git a/net/atm/proc.c b/net/atm/proc.c
index 642f9272ab95..edc48edc95c1 100644
--- a/net/atm/proc.c
+++ b/net/atm/proc.c
@@ -37,7 +37,6 @@ static ssize_t proc_dev_atm_read(struct file *file, char __user *buf,
37 size_t count, loff_t *pos); 37 size_t count, loff_t *pos);
38 38
39static const struct file_operations proc_atm_dev_ops = { 39static const struct file_operations proc_atm_dev_ops = {
40 .owner = THIS_MODULE,
41 .read = proc_dev_atm_read, 40 .read = proc_dev_atm_read,
42 .llseek = noop_llseek, 41 .llseek = noop_llseek,
43}; 42};
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index 06eac1f50c5e..47fdd399626b 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -1931,7 +1931,6 @@ static int ax25_info_open(struct inode *inode, struct file *file)
1931} 1931}
1932 1932
1933static const struct file_operations ax25_info_fops = { 1933static const struct file_operations ax25_info_fops = {
1934 .owner = THIS_MODULE,
1935 .open = ax25_info_open, 1934 .open = ax25_info_open,
1936 .read = seq_read, 1935 .read = seq_read,
1937 .llseek = seq_lseek, 1936 .llseek = seq_lseek,
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c
index 0446b892618a..525558972fd9 100644
--- a/net/ax25/ax25_route.c
+++ b/net/ax25/ax25_route.c
@@ -336,7 +336,6 @@ static int ax25_rt_info_open(struct inode *inode, struct file *file)
336} 336}
337 337
338const struct file_operations ax25_route_fops = { 338const struct file_operations ax25_route_fops = {
339 .owner = THIS_MODULE,
340 .open = ax25_rt_info_open, 339 .open = ax25_rt_info_open,
341 .read = seq_read, 340 .read = seq_read,
342 .llseek = seq_lseek, 341 .llseek = seq_lseek,
diff --git a/net/ax25/ax25_uid.c b/net/ax25/ax25_uid.c
index 83b035f56202..4ebe91ba317a 100644
--- a/net/ax25/ax25_uid.c
+++ b/net/ax25/ax25_uid.c
@@ -194,7 +194,6 @@ static int ax25_uid_info_open(struct inode *inode, struct file *file)
194} 194}
195 195
196const struct file_operations ax25_uid_fops = { 196const struct file_operations ax25_uid_fops = {
197 .owner = THIS_MODULE,
198 .open = ax25_uid_info_open, 197 .open = ax25_uid_info_open,
199 .read = seq_read, 198 .read = seq_read,
200 .llseek = seq_lseek, 199 .llseek = seq_lseek,
diff --git a/net/bluetooth/cmtp/capi.c b/net/bluetooth/cmtp/capi.c
index bb308224099c..426a92f02db4 100644
--- a/net/bluetooth/cmtp/capi.c
+++ b/net/bluetooth/cmtp/capi.c
@@ -527,7 +527,6 @@ static int cmtp_proc_open(struct inode *inode, struct file *file)
527} 527}
528 528
529static const struct file_operations cmtp_proc_fops = { 529static const struct file_operations cmtp_proc_fops = {
530 .owner = THIS_MODULE,
531 .open = cmtp_proc_open, 530 .open = cmtp_proc_open,
532 .read = seq_read, 531 .read = seq_read,
533 .llseek = seq_lseek, 532 .llseek = seq_lseek,
diff --git a/net/can/bcm.c b/net/can/bcm.c
index 13690334efa3..ac5e5e34fee3 100644
--- a/net/can/bcm.c
+++ b/net/can/bcm.c
@@ -246,7 +246,6 @@ static int bcm_proc_open(struct inode *inode, struct file *file)
246} 246}
247 247
248static const struct file_operations bcm_proc_fops = { 248static const struct file_operations bcm_proc_fops = {
249 .owner = THIS_MODULE,
250 .open = bcm_proc_open, 249 .open = bcm_proc_open,
251 .read = seq_read, 250 .read = seq_read,
252 .llseek = seq_lseek, 251 .llseek = seq_lseek,
diff --git a/net/can/proc.c b/net/can/proc.c
index 45e38a3085bc..fdf704e9bb8c 100644
--- a/net/can/proc.c
+++ b/net/can/proc.c
@@ -276,7 +276,6 @@ static int can_stats_proc_open(struct inode *inode, struct file *file)
276} 276}
277 277
278static const struct file_operations can_stats_proc_fops = { 278static const struct file_operations can_stats_proc_fops = {
279 .owner = THIS_MODULE,
280 .open = can_stats_proc_open, 279 .open = can_stats_proc_open,
281 .read = seq_read, 280 .read = seq_read,
282 .llseek = seq_lseek, 281 .llseek = seq_lseek,
@@ -310,7 +309,6 @@ static int can_reset_stats_proc_open(struct inode *inode, struct file *file)
310} 309}
311 310
312static const struct file_operations can_reset_stats_proc_fops = { 311static const struct file_operations can_reset_stats_proc_fops = {
313 .owner = THIS_MODULE,
314 .open = can_reset_stats_proc_open, 312 .open = can_reset_stats_proc_open,
315 .read = seq_read, 313 .read = seq_read,
316 .llseek = seq_lseek, 314 .llseek = seq_lseek,
@@ -329,7 +327,6 @@ static int can_version_proc_open(struct inode *inode, struct file *file)
329} 327}
330 328
331static const struct file_operations can_version_proc_fops = { 329static const struct file_operations can_version_proc_fops = {
332 .owner = THIS_MODULE,
333 .open = can_version_proc_open, 330 .open = can_version_proc_open,
334 .read = seq_read, 331 .read = seq_read,
335 .llseek = seq_lseek, 332 .llseek = seq_lseek,
@@ -382,7 +379,6 @@ static int can_rcvlist_proc_open(struct inode *inode, struct file *file)
382} 379}
383 380
384static const struct file_operations can_rcvlist_proc_fops = { 381static const struct file_operations can_rcvlist_proc_fops = {
385 .owner = THIS_MODULE,
386 .open = can_rcvlist_proc_open, 382 .open = can_rcvlist_proc_open,
387 .read = seq_read, 383 .read = seq_read,
388 .llseek = seq_lseek, 384 .llseek = seq_lseek,
@@ -450,7 +446,6 @@ static int can_rcvlist_sff_proc_open(struct inode *inode, struct file *file)
450} 446}
451 447
452static const struct file_operations can_rcvlist_sff_proc_fops = { 448static const struct file_operations can_rcvlist_sff_proc_fops = {
453 .owner = THIS_MODULE,
454 .open = can_rcvlist_sff_proc_open, 449 .open = can_rcvlist_sff_proc_open,
455 .read = seq_read, 450 .read = seq_read,
456 .llseek = seq_lseek, 451 .llseek = seq_lseek,
@@ -494,7 +489,6 @@ static int can_rcvlist_eff_proc_open(struct inode *inode, struct file *file)
494} 489}
495 490
496static const struct file_operations can_rcvlist_eff_proc_fops = { 491static const struct file_operations can_rcvlist_eff_proc_fops = {
497 .owner = THIS_MODULE,
498 .open = can_rcvlist_eff_proc_open, 492 .open = can_rcvlist_eff_proc_open,
499 .read = seq_read, 493 .read = seq_read,
500 .llseek = seq_lseek, 494 .llseek = seq_lseek,
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index d1f5fe986edd..f96f9f58b894 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -2862,7 +2862,6 @@ static int neigh_stat_seq_open(struct inode *inode, struct file *file)
2862}; 2862};
2863 2863
2864static const struct file_operations neigh_stat_seq_fops = { 2864static const struct file_operations neigh_stat_seq_fops = {
2865 .owner = THIS_MODULE,
2866 .open = neigh_stat_seq_open, 2865 .open = neigh_stat_seq_open,
2867 .read = seq_read, 2866 .read = seq_read,
2868 .llseek = seq_lseek, 2867 .llseek = seq_lseek,
diff --git a/net/core/net-procfs.c b/net/core/net-procfs.c
index 615ccab55f38..e010bb800d7b 100644
--- a/net/core/net-procfs.c
+++ b/net/core/net-procfs.c
@@ -182,7 +182,6 @@ static int dev_seq_open(struct inode *inode, struct file *file)
182} 182}
183 183
184static const struct file_operations dev_seq_fops = { 184static const struct file_operations dev_seq_fops = {
185 .owner = THIS_MODULE,
186 .open = dev_seq_open, 185 .open = dev_seq_open,
187 .read = seq_read, 186 .read = seq_read,
188 .llseek = seq_lseek, 187 .llseek = seq_lseek,
@@ -202,7 +201,6 @@ static int softnet_seq_open(struct inode *inode, struct file *file)
202} 201}
203 202
204static const struct file_operations softnet_seq_fops = { 203static const struct file_operations softnet_seq_fops = {
205 .owner = THIS_MODULE,
206 .open = softnet_seq_open, 204 .open = softnet_seq_open,
207 .read = seq_read, 205 .read = seq_read,
208 .llseek = seq_lseek, 206 .llseek = seq_lseek,
@@ -306,7 +304,6 @@ static int ptype_seq_open(struct inode *inode, struct file *file)
306} 304}
307 305
308static const struct file_operations ptype_seq_fops = { 306static const struct file_operations ptype_seq_fops = {
309 .owner = THIS_MODULE,
310 .open = ptype_seq_open, 307 .open = ptype_seq_open,
311 .read = seq_read, 308 .read = seq_read,
312 .llseek = seq_lseek, 309 .llseek = seq_lseek,
@@ -387,7 +384,6 @@ static int dev_mc_seq_open(struct inode *inode, struct file *file)
387} 384}
388 385
389static const struct file_operations dev_mc_seq_fops = { 386static const struct file_operations dev_mc_seq_fops = {
390 .owner = THIS_MODULE,
391 .open = dev_mc_seq_open, 387 .open = dev_mc_seq_open,
392 .read = seq_read, 388 .read = seq_read,
393 .llseek = seq_lseek, 389 .llseek = seq_lseek,
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index b9ce241cd28c..4fcfcb14e7c6 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -523,7 +523,6 @@ static int pgctrl_open(struct inode *inode, struct file *file)
523} 523}
524 524
525static const struct file_operations pktgen_fops = { 525static const struct file_operations pktgen_fops = {
526 .owner = THIS_MODULE,
527 .open = pgctrl_open, 526 .open = pgctrl_open,
528 .read = seq_read, 527 .read = seq_read,
529 .llseek = seq_lseek, 528 .llseek = seq_lseek,
@@ -1804,7 +1803,6 @@ static int pktgen_if_open(struct inode *inode, struct file *file)
1804} 1803}
1805 1804
1806static const struct file_operations pktgen_if_fops = { 1805static const struct file_operations pktgen_if_fops = {
1807 .owner = THIS_MODULE,
1808 .open = pktgen_if_open, 1806 .open = pktgen_if_open,
1809 .read = seq_read, 1807 .read = seq_read,
1810 .llseek = seq_lseek, 1808 .llseek = seq_lseek,
@@ -1942,7 +1940,6 @@ static int pktgen_thread_open(struct inode *inode, struct file *file)
1942} 1940}
1943 1941
1944static const struct file_operations pktgen_thread_fops = { 1942static const struct file_operations pktgen_thread_fops = {
1945 .owner = THIS_MODULE,
1946 .open = pktgen_thread_open, 1943 .open = pktgen_thread_open,
1947 .read = seq_read, 1944 .read = seq_read,
1948 .llseek = seq_lseek, 1945 .llseek = seq_lseek,
diff --git a/net/core/sock.c b/net/core/sock.c
index 72d14b221784..abf4cbff99b2 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3362,7 +3362,6 @@ static int proto_seq_open(struct inode *inode, struct file *file)
3362} 3362}
3363 3363
3364static const struct file_operations proto_seq_fops = { 3364static const struct file_operations proto_seq_fops = {
3365 .owner = THIS_MODULE,
3366 .open = proto_seq_open, 3365 .open = proto_seq_open,
3367 .read = seq_read, 3366 .read = seq_read,
3368 .llseek = seq_lseek, 3367 .llseek = seq_lseek,
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c
index 518cea17b811..d93e5b887f03 100644
--- a/net/decnet/af_decnet.c
+++ b/net/decnet/af_decnet.c
@@ -2320,7 +2320,6 @@ static int dn_socket_seq_open(struct inode *inode, struct file *file)
2320} 2320}
2321 2321
2322static const struct file_operations dn_socket_seq_fops = { 2322static const struct file_operations dn_socket_seq_fops = {
2323 .owner = THIS_MODULE,
2324 .open = dn_socket_seq_open, 2323 .open = dn_socket_seq_open,
2325 .read = seq_read, 2324 .read = seq_read,
2326 .llseek = seq_lseek, 2325 .llseek = seq_lseek,
diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c
index d1885cf59319..c9f5e1ebb9c8 100644
--- a/net/decnet/dn_dev.c
+++ b/net/decnet/dn_dev.c
@@ -1389,7 +1389,6 @@ static int dn_dev_seq_open(struct inode *inode, struct file *file)
1389} 1389}
1390 1390
1391static const struct file_operations dn_dev_seq_fops = { 1391static const struct file_operations dn_dev_seq_fops = {
1392 .owner = THIS_MODULE,
1393 .open = dn_dev_seq_open, 1392 .open = dn_dev_seq_open,
1394 .read = seq_read, 1393 .read = seq_read,
1395 .llseek = seq_lseek, 1394 .llseek = seq_lseek,
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c
index 528119a5618e..6e37d9e6345e 100644
--- a/net/decnet/dn_neigh.c
+++ b/net/decnet/dn_neigh.c
@@ -597,7 +597,6 @@ static int dn_neigh_seq_open(struct inode *inode, struct file *file)
597} 597}
598 598
599static const struct file_operations dn_neigh_seq_fops = { 599static const struct file_operations dn_neigh_seq_fops = {
600 .owner = THIS_MODULE,
601 .open = dn_neigh_seq_open, 600 .open = dn_neigh_seq_open,
602 .read = seq_read, 601 .read = seq_read,
603 .llseek = seq_lseek, 602 .llseek = seq_lseek,
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 73160d4aebbe..ef20b8e31669 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -1860,7 +1860,6 @@ static int dn_rt_cache_seq_open(struct inode *inode, struct file *file)
1860} 1860}
1861 1861
1862static const struct file_operations dn_rt_cache_seq_fops = { 1862static const struct file_operations dn_rt_cache_seq_fops = {
1863 .owner = THIS_MODULE,
1864 .open = dn_rt_cache_seq_open, 1863 .open = dn_rt_cache_seq_open,
1865 .read = seq_read, 1864 .read = seq_read,
1866 .llseek = seq_lseek, 1865 .llseek = seq_lseek,
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index a8d7c5a9fb05..56aef027df31 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -1420,7 +1420,6 @@ static int arp_seq_open(struct inode *inode, struct file *file)
1420} 1420}
1421 1421
1422static const struct file_operations arp_seq_fops = { 1422static const struct file_operations arp_seq_fops = {
1423 .owner = THIS_MODULE,
1424 .open = arp_seq_open, 1423 .open = arp_seq_open,
1425 .read = seq_read, 1424 .read = seq_read,
1426 .llseek = seq_lseek, 1425 .llseek = seq_lseek,
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 5ddc4aefff12..5530cd6fdbc7 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -2334,7 +2334,6 @@ static int fib_triestat_seq_open(struct inode *inode, struct file *file)
2334} 2334}
2335 2335
2336static const struct file_operations fib_triestat_fops = { 2336static const struct file_operations fib_triestat_fops = {
2337 .owner = THIS_MODULE,
2338 .open = fib_triestat_seq_open, 2337 .open = fib_triestat_seq_open,
2339 .read = seq_read, 2338 .read = seq_read,
2340 .llseek = seq_lseek, 2339 .llseek = seq_lseek,
@@ -2521,7 +2520,6 @@ static int fib_trie_seq_open(struct inode *inode, struct file *file)
2521} 2520}
2522 2521
2523static const struct file_operations fib_trie_fops = { 2522static const struct file_operations fib_trie_fops = {
2524 .owner = THIS_MODULE,
2525 .open = fib_trie_seq_open, 2523 .open = fib_trie_seq_open,
2526 .read = seq_read, 2524 .read = seq_read,
2527 .llseek = seq_lseek, 2525 .llseek = seq_lseek,
@@ -2715,7 +2713,6 @@ static int fib_route_seq_open(struct inode *inode, struct file *file)
2715} 2713}
2716 2714
2717static const struct file_operations fib_route_fops = { 2715static const struct file_operations fib_route_fops = {
2718 .owner = THIS_MODULE,
2719 .open = fib_route_seq_open, 2716 .open = fib_route_seq_open,
2720 .read = seq_read, 2717 .read = seq_read,
2721 .llseek = seq_lseek, 2718 .llseek = seq_lseek,
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 726f6b608274..02f00be12bb0 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -2832,7 +2832,6 @@ static int igmp_mc_seq_open(struct inode *inode, struct file *file)
2832} 2832}
2833 2833
2834static const struct file_operations igmp_mc_seq_fops = { 2834static const struct file_operations igmp_mc_seq_fops = {
2835 .owner = THIS_MODULE,
2836 .open = igmp_mc_seq_open, 2835 .open = igmp_mc_seq_open,
2837 .read = seq_read, 2836 .read = seq_read,
2838 .llseek = seq_lseek, 2837 .llseek = seq_lseek,
@@ -2979,7 +2978,6 @@ static int igmp_mcf_seq_open(struct inode *inode, struct file *file)
2979} 2978}
2980 2979
2981static const struct file_operations igmp_mcf_seq_fops = { 2980static const struct file_operations igmp_mcf_seq_fops = {
2982 .owner = THIS_MODULE,
2983 .open = igmp_mcf_seq_open, 2981 .open = igmp_mcf_seq_open,
2984 .read = seq_read, 2982 .read = seq_read,
2985 .llseek = seq_lseek, 2983 .llseek = seq_lseek,
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index abdebca848c9..e9e488e72900 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -1322,7 +1322,6 @@ static int pnp_seq_open(struct inode *indoe, struct file *file)
1322} 1322}
1323 1323
1324static const struct file_operations pnp_seq_fops = { 1324static const struct file_operations pnp_seq_fops = {
1325 .owner = THIS_MODULE,
1326 .open = pnp_seq_open, 1325 .open = pnp_seq_open,
1327 .read = seq_read, 1326 .read = seq_read,
1328 .llseek = seq_lseek, 1327 .llseek = seq_lseek,
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index fd5f19c988e4..a819fab45d17 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -3045,7 +3045,6 @@ static int ipmr_vif_open(struct inode *inode, struct file *file)
3045} 3045}
3046 3046
3047static const struct file_operations ipmr_vif_fops = { 3047static const struct file_operations ipmr_vif_fops = {
3048 .owner = THIS_MODULE,
3049 .open = ipmr_vif_open, 3048 .open = ipmr_vif_open,
3050 .read = seq_read, 3049 .read = seq_read,
3051 .llseek = seq_lseek, 3050 .llseek = seq_lseek,
@@ -3198,7 +3197,6 @@ static int ipmr_mfc_open(struct inode *inode, struct file *file)
3198} 3197}
3199 3198
3200static const struct file_operations ipmr_mfc_fops = { 3199static const struct file_operations ipmr_mfc_fops = {
3201 .owner = THIS_MODULE,
3202 .open = ipmr_mfc_open, 3200 .open = ipmr_mfc_open,
3203 .read = seq_read, 3201 .read = seq_read,
3204 .llseek = seq_lseek, 3202 .llseek = seq_lseek,
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c
index 69060e3abe85..c29a6ca6c6d6 100644
--- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
+++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
@@ -776,7 +776,6 @@ static ssize_t clusterip_proc_write(struct file *file, const char __user *input,
776} 776}
777 777
778static const struct file_operations clusterip_proc_fops = { 778static const struct file_operations clusterip_proc_fops = {
779 .owner = THIS_MODULE,
780 .open = clusterip_proc_open, 779 .open = clusterip_proc_open,
781 .read = seq_read, 780 .read = seq_read,
782 .write = clusterip_proc_write, 781 .write = clusterip_proc_write,
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index 9f37c4727861..dc5edc8f7564 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -83,7 +83,6 @@ static int sockstat_seq_open(struct inode *inode, struct file *file)
83} 83}
84 84
85static const struct file_operations sockstat_seq_fops = { 85static const struct file_operations sockstat_seq_fops = {
86 .owner = THIS_MODULE,
87 .open = sockstat_seq_open, 86 .open = sockstat_seq_open,
88 .read = seq_read, 87 .read = seq_read,
89 .llseek = seq_lseek, 88 .llseek = seq_lseek,
@@ -467,7 +466,6 @@ static int snmp_seq_open(struct inode *inode, struct file *file)
467} 466}
468 467
469static const struct file_operations snmp_seq_fops = { 468static const struct file_operations snmp_seq_fops = {
470 .owner = THIS_MODULE,
471 .open = snmp_seq_open, 469 .open = snmp_seq_open,
472 .read = seq_read, 470 .read = seq_read,
473 .llseek = seq_lseek, 471 .llseek = seq_lseek,
@@ -515,7 +513,6 @@ static int netstat_seq_open(struct inode *inode, struct file *file)
515} 513}
516 514
517static const struct file_operations netstat_seq_fops = { 515static const struct file_operations netstat_seq_fops = {
518 .owner = THIS_MODULE,
519 .open = netstat_seq_open, 516 .open = netstat_seq_open,
520 .read = seq_read, 517 .read = seq_read,
521 .llseek = seq_lseek, 518 .llseek = seq_lseek,
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index 5e570aa9e43b..136544b36a46 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -1119,7 +1119,6 @@ static int raw_v4_seq_open(struct inode *inode, struct file *file)
1119} 1119}
1120 1120
1121static const struct file_operations raw_seq_fops = { 1121static const struct file_operations raw_seq_fops = {
1122 .owner = THIS_MODULE,
1123 .open = raw_v4_seq_open, 1122 .open = raw_v4_seq_open,
1124 .read = seq_read, 1123 .read = seq_read,
1125 .llseek = seq_lseek, 1124 .llseek = seq_lseek,
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index f0ed031f3594..b7d90b48d821 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -240,7 +240,6 @@ static int rt_cache_seq_open(struct inode *inode, struct file *file)
240} 240}
241 241
242static const struct file_operations rt_cache_seq_fops = { 242static const struct file_operations rt_cache_seq_fops = {
243 .owner = THIS_MODULE,
244 .open = rt_cache_seq_open, 243 .open = rt_cache_seq_open,
245 .read = seq_read, 244 .read = seq_read,
246 .llseek = seq_lseek, 245 .llseek = seq_lseek,
@@ -331,7 +330,6 @@ static int rt_cpu_seq_open(struct inode *inode, struct file *file)
331} 330}
332 331
333static const struct file_operations rt_cpu_seq_fops = { 332static const struct file_operations rt_cpu_seq_fops = {
334 .owner = THIS_MODULE,
335 .open = rt_cpu_seq_open, 333 .open = rt_cpu_seq_open,
336 .read = seq_read, 334 .read = seq_read,
337 .llseek = seq_lseek, 335 .llseek = seq_lseek,
@@ -369,7 +367,6 @@ static int rt_acct_proc_open(struct inode *inode, struct file *file)
369} 367}
370 368
371static const struct file_operations rt_acct_proc_fops = { 369static const struct file_operations rt_acct_proc_fops = {
372 .owner = THIS_MODULE,
373 .open = rt_acct_proc_open, 370 .open = rt_acct_proc_open,
374 .read = seq_read, 371 .read = seq_read,
375 .llseek = seq_lseek, 372 .llseek = seq_lseek,
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 5d203248123e..95738aa0d8a6 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2358,7 +2358,6 @@ out:
2358} 2358}
2359 2359
2360static const struct file_operations tcp_afinfo_seq_fops = { 2360static const struct file_operations tcp_afinfo_seq_fops = {
2361 .owner = THIS_MODULE,
2362 .open = tcp_seq_open, 2361 .open = tcp_seq_open,
2363 .read = seq_read, 2362 .read = seq_read,
2364 .llseek = seq_lseek, 2363 .llseek = seq_lseek,
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index db72619e07e4..853321555a4e 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -2714,7 +2714,6 @@ int udp4_seq_show(struct seq_file *seq, void *v)
2714} 2714}
2715 2715
2716static const struct file_operations udp_afinfo_seq_fops = { 2716static const struct file_operations udp_afinfo_seq_fops = {
2717 .owner = THIS_MODULE,
2718 .open = udp_seq_open, 2717 .open = udp_seq_open,
2719 .read = seq_read, 2718 .read = seq_read,
2720 .llseek = seq_lseek, 2719 .llseek = seq_lseek,
diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c
index 59f10fe9782e..f96614e9b9a5 100644
--- a/net/ipv4/udplite.c
+++ b/net/ipv4/udplite.c
@@ -75,7 +75,6 @@ static struct inet_protosw udplite4_protosw = {
75#ifdef CONFIG_PROC_FS 75#ifdef CONFIG_PROC_FS
76 76
77static const struct file_operations udplite_afinfo_seq_fops = { 77static const struct file_operations udplite_afinfo_seq_fops = {
78 .owner = THIS_MODULE,
79 .open = udp_seq_open, 78 .open = udp_seq_open,
80 .read = seq_read, 79 .read = seq_read,
81 .llseek = seq_lseek, 80 .llseek = seq_lseek,
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 2435f7ab070b..ab99cb641b7c 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4214,7 +4214,6 @@ static int if6_seq_open(struct inode *inode, struct file *file)
4214} 4214}
4215 4215
4216static const struct file_operations if6_fops = { 4216static const struct file_operations if6_fops = {
4217 .owner = THIS_MODULE,
4218 .open = if6_seq_open, 4217 .open = if6_seq_open,
4219 .read = seq_read, 4218 .read = seq_read,
4220 .llseek = seq_lseek, 4219 .llseek = seq_lseek,
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c
index 0bbab8a4b5d8..8e085cc05aeb 100644
--- a/net/ipv6/anycast.c
+++ b/net/ipv6/anycast.c
@@ -533,7 +533,6 @@ static int ac6_seq_open(struct inode *inode, struct file *file)
533} 533}
534 534
535static const struct file_operations ac6_seq_fops = { 535static const struct file_operations ac6_seq_fops = {
536 .owner = THIS_MODULE,
537 .open = ac6_seq_open, 536 .open = ac6_seq_open,
538 .read = seq_read, 537 .read = seq_read,
539 .llseek = seq_lseek, 538 .llseek = seq_lseek,
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c
index 7f59c8fabeeb..3dab664ff503 100644
--- a/net/ipv6/ip6_flowlabel.c
+++ b/net/ipv6/ip6_flowlabel.c
@@ -836,7 +836,6 @@ static int ip6fl_seq_release(struct inode *inode, struct file *file)
836} 836}
837 837
838static const struct file_operations ip6fl_seq_fops = { 838static const struct file_operations ip6fl_seq_fops = {
839 .owner = THIS_MODULE,
840 .open = ip6fl_seq_open, 839 .open = ip6fl_seq_open,
841 .read = seq_read, 840 .read = seq_read,
842 .llseek = seq_lseek, 841 .llseek = seq_lseek,
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 890f9bda06a4..754ef84cf354 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -477,7 +477,6 @@ static int ip6mr_vif_open(struct inode *inode, struct file *file)
477} 477}
478 478
479static const struct file_operations ip6mr_vif_fops = { 479static const struct file_operations ip6mr_vif_fops = {
480 .owner = THIS_MODULE,
481 .open = ip6mr_vif_open, 480 .open = ip6mr_vif_open,
482 .read = seq_read, 481 .read = seq_read,
483 .llseek = seq_lseek, 482 .llseek = seq_lseek,
@@ -609,7 +608,6 @@ static int ipmr_mfc_open(struct inode *inode, struct file *file)
609} 608}
610 609
611static const struct file_operations ip6mr_mfc_fops = { 610static const struct file_operations ip6mr_mfc_fops = {
612 .owner = THIS_MODULE,
613 .open = ipmr_mfc_open, 611 .open = ipmr_mfc_open,
614 .read = seq_read, 612 .read = seq_read,
615 .llseek = seq_lseek, 613 .llseek = seq_lseek,
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index 844642682b83..40b223a930a3 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -2758,7 +2758,6 @@ static int igmp6_mc_seq_open(struct inode *inode, struct file *file)
2758} 2758}
2759 2759
2760static const struct file_operations igmp6_mc_seq_fops = { 2760static const struct file_operations igmp6_mc_seq_fops = {
2761 .owner = THIS_MODULE,
2762 .open = igmp6_mc_seq_open, 2761 .open = igmp6_mc_seq_open,
2763 .read = seq_read, 2762 .read = seq_read,
2764 .llseek = seq_lseek, 2763 .llseek = seq_lseek,
@@ -2913,7 +2912,6 @@ static int igmp6_mcf_seq_open(struct inode *inode, struct file *file)
2913} 2912}
2914 2913
2915static const struct file_operations igmp6_mcf_seq_fops = { 2914static const struct file_operations igmp6_mcf_seq_fops = {
2916 .owner = THIS_MODULE,
2917 .open = igmp6_mcf_seq_open, 2915 .open = igmp6_mcf_seq_open,
2918 .read = seq_read, 2916 .read = seq_read,
2919 .llseek = seq_lseek, 2917 .llseek = seq_lseek,
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index e88bcb8ff0fd..b67814242f78 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -58,7 +58,6 @@ static int sockstat6_seq_open(struct inode *inode, struct file *file)
58} 58}
59 59
60static const struct file_operations sockstat6_seq_fops = { 60static const struct file_operations sockstat6_seq_fops = {
61 .owner = THIS_MODULE,
62 .open = sockstat6_seq_open, 61 .open = sockstat6_seq_open,
63 .read = seq_read, 62 .read = seq_read,
64 .llseek = seq_lseek, 63 .llseek = seq_lseek,
@@ -248,7 +247,6 @@ static int snmp6_seq_open(struct inode *inode, struct file *file)
248} 247}
249 248
250static const struct file_operations snmp6_seq_fops = { 249static const struct file_operations snmp6_seq_fops = {
251 .owner = THIS_MODULE,
252 .open = snmp6_seq_open, 250 .open = snmp6_seq_open,
253 .read = seq_read, 251 .read = seq_read,
254 .llseek = seq_lseek, 252 .llseek = seq_lseek,
@@ -274,7 +272,6 @@ static int snmp6_dev_seq_open(struct inode *inode, struct file *file)
274} 272}
275 273
276static const struct file_operations snmp6_dev_seq_fops = { 274static const struct file_operations snmp6_dev_seq_fops = {
277 .owner = THIS_MODULE,
278 .open = snmp6_dev_seq_open, 275 .open = snmp6_dev_seq_open,
279 .read = seq_read, 276 .read = seq_read,
280 .llseek = seq_lseek, 277 .llseek = seq_lseek,
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 761a473a07c5..ddda7eb3c623 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -1308,7 +1308,6 @@ static int raw6_seq_open(struct inode *inode, struct file *file)
1308} 1308}
1309 1309
1310static const struct file_operations raw6_seq_fops = { 1310static const struct file_operations raw6_seq_fops = {
1311 .owner = THIS_MODULE,
1312 .open = raw6_seq_open, 1311 .open = raw6_seq_open,
1313 .read = seq_read, 1312 .read = seq_read,
1314 .llseek = seq_lseek, 1313 .llseek = seq_lseek,
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index c37bd9569172..f85da2f1e729 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -4648,7 +4648,6 @@ static int ip6_route_dev_notify(struct notifier_block *this,
4648#ifdef CONFIG_PROC_FS 4648#ifdef CONFIG_PROC_FS
4649 4649
4650static const struct file_operations ipv6_route_proc_fops = { 4650static const struct file_operations ipv6_route_proc_fops = {
4651 .owner = THIS_MODULE,
4652 .open = ipv6_route_open, 4651 .open = ipv6_route_open,
4653 .read = seq_read, 4652 .read = seq_read,
4654 .llseek = seq_lseek, 4653 .llseek = seq_lseek,
@@ -4676,7 +4675,6 @@ static int rt6_stats_seq_open(struct inode *inode, struct file *file)
4676} 4675}
4677 4676
4678static const struct file_operations rt6_stats_seq_fops = { 4677static const struct file_operations rt6_stats_seq_fops = {
4679 .owner = THIS_MODULE,
4680 .open = rt6_stats_seq_open, 4678 .open = rt6_stats_seq_open,
4681 .read = seq_read, 4679 .read = seq_read,
4682 .llseek = seq_lseek, 4680 .llseek = seq_lseek,
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index c0f7e69f2e6c..a1ab29e2ab3b 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1883,7 +1883,6 @@ out:
1883} 1883}
1884 1884
1885static const struct file_operations tcp6_afinfo_seq_fops = { 1885static const struct file_operations tcp6_afinfo_seq_fops = {
1886 .owner = THIS_MODULE,
1887 .open = tcp_seq_open, 1886 .open = tcp_seq_open,
1888 .read = seq_read, 1887 .read = seq_read,
1889 .llseek = seq_lseek, 1888 .llseek = seq_lseek,
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index eecf9f0faf29..52e3ea0e6f50 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -1479,7 +1479,6 @@ int udp6_seq_show(struct seq_file *seq, void *v)
1479} 1479}
1480 1480
1481static const struct file_operations udp6_afinfo_seq_fops = { 1481static const struct file_operations udp6_afinfo_seq_fops = {
1482 .owner = THIS_MODULE,
1483 .open = udp_seq_open, 1482 .open = udp_seq_open,
1484 .read = seq_read, 1483 .read = seq_read,
1485 .llseek = seq_lseek, 1484 .llseek = seq_lseek,
diff --git a/net/ipv6/udplite.c b/net/ipv6/udplite.c
index 2784cc363f2b..14ae32bb1f3d 100644
--- a/net/ipv6/udplite.c
+++ b/net/ipv6/udplite.c
@@ -94,7 +94,6 @@ void udplitev6_exit(void)
94#ifdef CONFIG_PROC_FS 94#ifdef CONFIG_PROC_FS
95 95
96static const struct file_operations udplite6_afinfo_seq_fops = { 96static const struct file_operations udplite6_afinfo_seq_fops = {
97 .owner = THIS_MODULE,
98 .open = udp_seq_open, 97 .open = udp_seq_open,
99 .read = seq_read, 98 .read = seq_read,
100 .llseek = seq_lseek, 99 .llseek = seq_lseek,
diff --git a/net/ipx/ipx_proc.c b/net/ipx/ipx_proc.c
index 38a3d51d9ead..b9232e4e2ed4 100644
--- a/net/ipx/ipx_proc.c
+++ b/net/ipx/ipx_proc.c
@@ -260,7 +260,6 @@ static int ipx_seq_socket_open(struct inode *inode, struct file *file)
260} 260}
261 261
262static const struct file_operations ipx_seq_interface_fops = { 262static const struct file_operations ipx_seq_interface_fops = {
263 .owner = THIS_MODULE,
264 .open = ipx_seq_interface_open, 263 .open = ipx_seq_interface_open,
265 .read = seq_read, 264 .read = seq_read,
266 .llseek = seq_lseek, 265 .llseek = seq_lseek,
@@ -268,7 +267,6 @@ static const struct file_operations ipx_seq_interface_fops = {
268}; 267};
269 268
270static const struct file_operations ipx_seq_route_fops = { 269static const struct file_operations ipx_seq_route_fops = {
271 .owner = THIS_MODULE,
272 .open = ipx_seq_route_open, 270 .open = ipx_seq_route_open,
273 .read = seq_read, 271 .read = seq_read,
274 .llseek = seq_lseek, 272 .llseek = seq_lseek,
@@ -276,7 +274,6 @@ static const struct file_operations ipx_seq_route_fops = {
276}; 274};
277 275
278static const struct file_operations ipx_seq_socket_fops = { 276static const struct file_operations ipx_seq_socket_fops = {
279 .owner = THIS_MODULE,
280 .open = ipx_seq_socket_open, 277 .open = ipx_seq_socket_open,
281 .read = seq_read, 278 .read = seq_read,
282 .llseek = seq_lseek, 279 .llseek = seq_lseek,
diff --git a/net/kcm/kcmproc.c b/net/kcm/kcmproc.c
index bd5723315069..9d5649e4e8b7 100644
--- a/net/kcm/kcmproc.c
+++ b/net/kcm/kcmproc.c
@@ -247,7 +247,6 @@ static int kcm_seq_show(struct seq_file *seq, void *v)
247} 247}
248 248
249static const struct file_operations kcm_seq_fops = { 249static const struct file_operations kcm_seq_fops = {
250 .owner = THIS_MODULE,
251 .open = kcm_seq_open, 250 .open = kcm_seq_open,
252 .read = seq_read, 251 .read = seq_read,
253 .llseek = seq_lseek, 252 .llseek = seq_lseek,
@@ -397,7 +396,6 @@ static int kcm_stats_seq_open(struct inode *inode, struct file *file)
397} 396}
398 397
399static const struct file_operations kcm_stats_seq_fops = { 398static const struct file_operations kcm_stats_seq_fops = {
400 .owner = THIS_MODULE,
401 .open = kcm_stats_seq_open, 399 .open = kcm_stats_seq_open,
402 .read = seq_read, 400 .read = seq_read,
403 .llseek = seq_lseek, 401 .llseek = seq_lseek,
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index b412fc3351dc..59f246d7b290 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -1734,7 +1734,6 @@ static int pppol2tp_proc_open(struct inode *inode, struct file *file)
1734} 1734}
1735 1735
1736static const struct file_operations pppol2tp_proc_fops = { 1736static const struct file_operations pppol2tp_proc_fops = {
1737 .owner = THIS_MODULE,
1738 .open = pppol2tp_proc_open, 1737 .open = pppol2tp_proc_open,
1739 .read = seq_read, 1738 .read = seq_read,
1740 .llseek = seq_lseek, 1739 .llseek = seq_lseek,
diff --git a/net/llc/llc_proc.c b/net/llc/llc_proc.c
index 29c509c54bb2..66821e8a2b7a 100644
--- a/net/llc/llc_proc.c
+++ b/net/llc/llc_proc.c
@@ -225,7 +225,6 @@ static int llc_seq_core_open(struct inode *inode, struct file *file)
225} 225}
226 226
227static const struct file_operations llc_seq_socket_fops = { 227static const struct file_operations llc_seq_socket_fops = {
228 .owner = THIS_MODULE,
229 .open = llc_seq_socket_open, 228 .open = llc_seq_socket_open,
230 .read = seq_read, 229 .read = seq_read,
231 .llseek = seq_lseek, 230 .llseek = seq_lseek,
@@ -233,7 +232,6 @@ static const struct file_operations llc_seq_socket_fops = {
233}; 232};
234 233
235static const struct file_operations llc_seq_core_fops = { 234static const struct file_operations llc_seq_core_fops = {
236 .owner = THIS_MODULE,
237 .open = llc_seq_core_open, 235 .open = llc_seq_core_open,
238 .read = seq_read, 236 .read = seq_read,
239 .llseek = seq_lseek, 237 .llseek = seq_lseek,
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 972bfe113043..1e52f6012d5d 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -2637,7 +2637,6 @@ static int netlink_seq_open(struct inode *inode, struct file *file)
2637} 2637}
2638 2638
2639static const struct file_operations netlink_seq_fops = { 2639static const struct file_operations netlink_seq_fops = {
2640 .owner = THIS_MODULE,
2641 .open = netlink_seq_open, 2640 .open = netlink_seq_open,
2642 .read = seq_read, 2641 .read = seq_read,
2643 .llseek = seq_lseek, 2642 .llseek = seq_lseek,
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c
index 7ed9d4422a73..9ba30c63be3d 100644
--- a/net/netrom/af_netrom.c
+++ b/net/netrom/af_netrom.c
@@ -1344,7 +1344,6 @@ static int nr_info_open(struct inode *inode, struct file *file)
1344} 1344}
1345 1345
1346static const struct file_operations nr_info_fops = { 1346static const struct file_operations nr_info_fops = {
1347 .owner = THIS_MODULE,
1348 .open = nr_info_open, 1347 .open = nr_info_open,
1349 .read = seq_read, 1348 .read = seq_read,
1350 .llseek = seq_lseek, 1349 .llseek = seq_lseek,
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c
index 75e6ba970fde..b5a7dcb30991 100644
--- a/net/netrom/nr_route.c
+++ b/net/netrom/nr_route.c
@@ -901,7 +901,6 @@ static int nr_node_info_open(struct inode *inode, struct file *file)
901} 901}
902 902
903const struct file_operations nr_nodes_fops = { 903const struct file_operations nr_nodes_fops = {
904 .owner = THIS_MODULE,
905 .open = nr_node_info_open, 904 .open = nr_node_info_open,
906 .read = seq_read, 905 .read = seq_read,
907 .llseek = seq_lseek, 906 .llseek = seq_lseek,
@@ -968,7 +967,6 @@ static int nr_neigh_info_open(struct inode *inode, struct file *file)
968} 967}
969 968
970const struct file_operations nr_neigh_fops = { 969const struct file_operations nr_neigh_fops = {
971 .owner = THIS_MODULE,
972 .open = nr_neigh_info_open, 970 .open = nr_neigh_info_open,
973 .read = seq_read, 971 .read = seq_read,
974 .llseek = seq_lseek, 972 .llseek = seq_lseek,
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index ee7aa0ba3a67..05d31864a34e 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -4531,7 +4531,6 @@ static int packet_seq_open(struct inode *inode, struct file *file)
4531} 4531}
4532 4532
4533static const struct file_operations packet_seq_fops = { 4533static const struct file_operations packet_seq_fops = {
4534 .owner = THIS_MODULE,
4535 .open = packet_seq_open, 4534 .open = packet_seq_open,
4536 .read = seq_read, 4535 .read = seq_read,
4537 .llseek = seq_lseek, 4536 .llseek = seq_lseek,
diff --git a/net/phonet/socket.c b/net/phonet/socket.c
index 1b050dd17393..fa2f13a8938f 100644
--- a/net/phonet/socket.c
+++ b/net/phonet/socket.c
@@ -635,7 +635,6 @@ static int pn_sock_open(struct inode *inode, struct file *file)
635} 635}
636 636
637const struct file_operations pn_sock_seq_fops = { 637const struct file_operations pn_sock_seq_fops = {
638 .owner = THIS_MODULE,
639 .open = pn_sock_open, 638 .open = pn_sock_open,
640 .read = seq_read, 639 .read = seq_read,
641 .llseek = seq_lseek, 640 .llseek = seq_lseek,
@@ -818,7 +817,6 @@ static int pn_res_open(struct inode *inode, struct file *file)
818} 817}
819 818
820const struct file_operations pn_res_seq_fops = { 819const struct file_operations pn_res_seq_fops = {
821 .owner = THIS_MODULE,
822 .open = pn_res_open, 820 .open = pn_res_open,
823 .read = seq_read, 821 .read = seq_read,
824 .llseek = seq_lseek, 822 .llseek = seq_lseek,
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c
index 6a5c4992cf61..083bd251406f 100644
--- a/net/rose/af_rose.c
+++ b/net/rose/af_rose.c
@@ -1461,7 +1461,6 @@ static int rose_info_open(struct inode *inode, struct file *file)
1461} 1461}
1462 1462
1463static const struct file_operations rose_info_fops = { 1463static const struct file_operations rose_info_fops = {
1464 .owner = THIS_MODULE,
1465 .open = rose_info_open, 1464 .open = rose_info_open,
1466 .read = seq_read, 1465 .read = seq_read,
1467 .llseek = seq_lseek, 1466 .llseek = seq_lseek,
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c
index 8ca3124df83f..178619ddab68 100644
--- a/net/rose/rose_route.c
+++ b/net/rose/rose_route.c
@@ -1156,7 +1156,6 @@ static int rose_nodes_open(struct inode *inode, struct file *file)
1156} 1156}
1157 1157
1158const struct file_operations rose_nodes_fops = { 1158const struct file_operations rose_nodes_fops = {
1159 .owner = THIS_MODULE,
1160 .open = rose_nodes_open, 1159 .open = rose_nodes_open,
1161 .read = seq_read, 1160 .read = seq_read,
1162 .llseek = seq_lseek, 1161 .llseek = seq_lseek,
@@ -1240,7 +1239,6 @@ static int rose_neigh_open(struct inode *inode, struct file *file)
1240} 1239}
1241 1240
1242const struct file_operations rose_neigh_fops = { 1241const struct file_operations rose_neigh_fops = {
1243 .owner = THIS_MODULE,
1244 .open = rose_neigh_open, 1242 .open = rose_neigh_open,
1245 .read = seq_read, 1243 .read = seq_read,
1246 .llseek = seq_lseek, 1244 .llseek = seq_lseek,
@@ -1326,7 +1324,6 @@ static int rose_route_open(struct inode *inode, struct file *file)
1326} 1324}
1327 1325
1328const struct file_operations rose_routes_fops = { 1326const struct file_operations rose_routes_fops = {
1329 .owner = THIS_MODULE,
1330 .open = rose_route_open, 1327 .open = rose_route_open,
1331 .read = seq_read, 1328 .read = seq_read,
1332 .llseek = seq_lseek, 1329 .llseek = seq_lseek,
diff --git a/net/rxrpc/proc.c b/net/rxrpc/proc.c
index 7421656963a9..f79f260c6ddc 100644
--- a/net/rxrpc/proc.c
+++ b/net/rxrpc/proc.c
@@ -125,7 +125,6 @@ static int rxrpc_call_seq_open(struct inode *inode, struct file *file)
125} 125}
126 126
127const struct file_operations rxrpc_call_seq_fops = { 127const struct file_operations rxrpc_call_seq_fops = {
128 .owner = THIS_MODULE,
129 .open = rxrpc_call_seq_open, 128 .open = rxrpc_call_seq_open,
130 .read = seq_read, 129 .read = seq_read,
131 .llseek = seq_lseek, 130 .llseek = seq_lseek,
@@ -217,7 +216,6 @@ static int rxrpc_connection_seq_open(struct inode *inode, struct file *file)
217} 216}
218 217
219const struct file_operations rxrpc_connection_seq_fops = { 218const struct file_operations rxrpc_connection_seq_fops = {
220 .owner = THIS_MODULE,
221 .open = rxrpc_connection_seq_open, 219 .open = rxrpc_connection_seq_open,
222 .read = seq_read, 220 .read = seq_read,
223 .llseek = seq_lseek, 221 .llseek = seq_lseek,
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 8a04c36e579f..0038a1c44ee9 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -2046,7 +2046,6 @@ static int psched_open(struct inode *inode, struct file *file)
2046} 2046}
2047 2047
2048static const struct file_operations psched_fops = { 2048static const struct file_operations psched_fops = {
2049 .owner = THIS_MODULE,
2050 .open = psched_open, 2049 .open = psched_open,
2051 .read = seq_read, 2050 .read = seq_read,
2052 .llseek = seq_lseek, 2051 .llseek = seq_lseek,
diff --git a/net/sctp/proc.c b/net/sctp/proc.c
index 4545bc2aff84..537545ebcb0e 100644
--- a/net/sctp/proc.c
+++ b/net/sctp/proc.c
@@ -95,7 +95,6 @@ static int sctp_snmp_seq_open(struct inode *inode, struct file *file)
95} 95}
96 96
97static const struct file_operations sctp_snmp_seq_fops = { 97static const struct file_operations sctp_snmp_seq_fops = {
98 .owner = THIS_MODULE,
99 .open = sctp_snmp_seq_open, 98 .open = sctp_snmp_seq_open,
100 .read = seq_read, 99 .read = seq_read,
101 .llseek = seq_lseek, 100 .llseek = seq_lseek,
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index a9ee634f3c42..90a3784e3084 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -2869,7 +2869,6 @@ static int unix_seq_open(struct inode *inode, struct file *file)
2869} 2869}
2870 2870
2871static const struct file_operations unix_seq_fops = { 2871static const struct file_operations unix_seq_fops = {
2872 .owner = THIS_MODULE,
2873 .open = unix_seq_open, 2872 .open = unix_seq_open,
2874 .read = seq_read, 2873 .read = seq_read,
2875 .llseek = seq_lseek, 2874 .llseek = seq_lseek,
diff --git a/net/wireless/wext-proc.c b/net/wireless/wext-proc.c
index e98a01c1034f..5511f989ef47 100644
--- a/net/wireless/wext-proc.c
+++ b/net/wireless/wext-proc.c
@@ -133,7 +133,6 @@ static int seq_open_wireless(struct inode *inode, struct file *file)
133} 133}
134 134
135static const struct file_operations wireless_seq_fops = { 135static const struct file_operations wireless_seq_fops = {
136 .owner = THIS_MODULE,
137 .open = seq_open_wireless, 136 .open = seq_open_wireless,
138 .read = seq_read, 137 .read = seq_read,
139 .llseek = seq_lseek, 138 .llseek = seq_lseek,
diff --git a/net/xfrm/xfrm_proc.c b/net/xfrm/xfrm_proc.c
index ba2b539879bc..6d5f85f4e672 100644
--- a/net/xfrm/xfrm_proc.c
+++ b/net/xfrm/xfrm_proc.c
@@ -71,7 +71,6 @@ static int xfrm_statistics_seq_open(struct inode *inode, struct file *file)
71} 71}
72 72
73static const struct file_operations xfrm_statistics_seq_fops = { 73static const struct file_operations xfrm_statistics_seq_fops = {
74 .owner = THIS_MODULE,
75 .open = xfrm_statistics_seq_open, 74 .open = xfrm_statistics_seq_open,
76 .read = seq_read, 75 .read = seq_read,
77 .llseek = seq_lseek, 76 .llseek = seq_lseek,