diff options
author | Philippe De Muyter <phdm@macqel.be> | 2007-07-11 02:07:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-11 02:07:31 -0400 |
commit | 56b3d975bbce65f655c5612b4822da671f9fd9b2 (patch) | |
tree | 7e29d70405d9c8e28ddee3b03a07157477fc780f | |
parent | 3be550f34b03e5eb762f74d447ebbeba97efbd6d (diff) |
[NET]: Make all initialized struct seq_operations const.
Make all initialized struct seq_operations in net/ const
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
56 files changed, 76 insertions, 76 deletions
diff --git a/net/802/tr.c b/net/802/tr.c index 0ba1946211c9..e56e61a7f545 100644 --- a/net/802/tr.c +++ b/net/802/tr.c | |||
@@ -567,7 +567,7 @@ static int rif_seq_show(struct seq_file *seq, void *v) | |||
567 | } | 567 | } |
568 | 568 | ||
569 | 569 | ||
570 | static struct seq_operations rif_seq_ops = { | 570 | static const struct seq_operations rif_seq_ops = { |
571 | .start = rif_seq_start, | 571 | .start = rif_seq_start, |
572 | .next = rif_seq_next, | 572 | .next = rif_seq_next, |
573 | .stop = rif_seq_stop, | 573 | .stop = rif_seq_stop, |
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index 8693b21b3caa..c0040c9064a1 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c | |||
@@ -69,7 +69,7 @@ static const char name_conf[] = "config"; | |||
69 | * Generic /proc/net/vlan/<file> file and inode operations | 69 | * Generic /proc/net/vlan/<file> file and inode operations |
70 | */ | 70 | */ |
71 | 71 | ||
72 | static struct seq_operations vlan_seq_ops = { | 72 | static const struct seq_operations vlan_seq_ops = { |
73 | .start = vlan_seq_start, | 73 | .start = vlan_seq_start, |
74 | .next = vlan_seq_next, | 74 | .next = vlan_seq_next, |
75 | .stop = vlan_seq_stop, | 75 | .stop = vlan_seq_stop, |
diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c index 5ef6a238bdbc..3d1655f98388 100644 --- a/net/appletalk/aarp.c +++ b/net/appletalk/aarp.c | |||
@@ -1024,7 +1024,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v) | |||
1024 | return 0; | 1024 | return 0; |
1025 | } | 1025 | } |
1026 | 1026 | ||
1027 | static struct seq_operations aarp_seq_ops = { | 1027 | static const struct seq_operations aarp_seq_ops = { |
1028 | .start = aarp_seq_start, | 1028 | .start = aarp_seq_start, |
1029 | .next = aarp_seq_next, | 1029 | .next = aarp_seq_next, |
1030 | .stop = aarp_seq_stop, | 1030 | .stop = aarp_seq_stop, |
diff --git a/net/appletalk/atalk_proc.c b/net/appletalk/atalk_proc.c index 57ff8122b5c5..87a582cc8111 100644 --- a/net/appletalk/atalk_proc.c +++ b/net/appletalk/atalk_proc.c | |||
@@ -204,21 +204,21 @@ out: | |||
204 | return 0; | 204 | return 0; |
205 | } | 205 | } |
206 | 206 | ||
207 | static struct seq_operations atalk_seq_interface_ops = { | 207 | static const struct seq_operations atalk_seq_interface_ops = { |
208 | .start = atalk_seq_interface_start, | 208 | .start = atalk_seq_interface_start, |
209 | .next = atalk_seq_interface_next, | 209 | .next = atalk_seq_interface_next, |
210 | .stop = atalk_seq_interface_stop, | 210 | .stop = atalk_seq_interface_stop, |
211 | .show = atalk_seq_interface_show, | 211 | .show = atalk_seq_interface_show, |
212 | }; | 212 | }; |
213 | 213 | ||
214 | static struct seq_operations atalk_seq_route_ops = { | 214 | static const struct seq_operations atalk_seq_route_ops = { |
215 | .start = atalk_seq_route_start, | 215 | .start = atalk_seq_route_start, |
216 | .next = atalk_seq_route_next, | 216 | .next = atalk_seq_route_next, |
217 | .stop = atalk_seq_route_stop, | 217 | .stop = atalk_seq_route_stop, |
218 | .show = atalk_seq_route_show, | 218 | .show = atalk_seq_route_show, |
219 | }; | 219 | }; |
220 | 220 | ||
221 | static struct seq_operations atalk_seq_socket_ops = { | 221 | static const struct seq_operations atalk_seq_socket_ops = { |
222 | .start = atalk_seq_socket_start, | 222 | .start = atalk_seq_socket_start, |
223 | .next = atalk_seq_socket_next, | 223 | .next = atalk_seq_socket_next, |
224 | .stop = atalk_seq_socket_stop, | 224 | .stop = atalk_seq_socket_stop, |
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index 3e2643893178..faa6aaf67563 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c | |||
@@ -758,7 +758,7 @@ static int br2684_seq_show(struct seq_file *seq, void *v) | |||
758 | return 0; | 758 | return 0; |
759 | } | 759 | } |
760 | 760 | ||
761 | static struct seq_operations br2684_seq_ops = { | 761 | static const struct seq_operations br2684_seq_ops = { |
762 | .start = br2684_seq_start, | 762 | .start = br2684_seq_start, |
763 | .next = br2684_seq_next, | 763 | .next = br2684_seq_next, |
764 | .stop = br2684_seq_stop, | 764 | .stop = br2684_seq_stop, |
diff --git a/net/atm/clip.c b/net/atm/clip.c index 876b77f14745..ecf0f79b94ae 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c | |||
@@ -928,7 +928,7 @@ static int clip_seq_show(struct seq_file *seq, void *v) | |||
928 | return 0; | 928 | return 0; |
929 | } | 929 | } |
930 | 930 | ||
931 | static struct seq_operations arp_seq_ops = { | 931 | static const struct seq_operations arp_seq_ops = { |
932 | .start = clip_seq_start, | 932 | .start = clip_seq_start, |
933 | .next = neigh_seq_next, | 933 | .next = neigh_seq_next, |
934 | .stop = neigh_seq_stop, | 934 | .stop = neigh_seq_stop, |
diff --git a/net/atm/lec.c b/net/atm/lec.c index 4dc5f2b8c43c..2770fb451ae8 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c | |||
@@ -1174,7 +1174,7 @@ static int lec_seq_show(struct seq_file *seq, void *v) | |||
1174 | return 0; | 1174 | return 0; |
1175 | } | 1175 | } |
1176 | 1176 | ||
1177 | static struct seq_operations lec_seq_ops = { | 1177 | static const struct seq_operations lec_seq_ops = { |
1178 | .start = lec_seq_start, | 1178 | .start = lec_seq_start, |
1179 | .next = lec_seq_next, | 1179 | .next = lec_seq_next, |
1180 | .stop = lec_seq_stop, | 1180 | .stop = lec_seq_stop, |
diff --git a/net/atm/mpoa_proc.c b/net/atm/mpoa_proc.c index 4b05cbec7a58..91f3ffc90dbd 100644 --- a/net/atm/mpoa_proc.c +++ b/net/atm/mpoa_proc.c | |||
@@ -177,7 +177,7 @@ static int mpc_show(struct seq_file *m, void *v) | |||
177 | return 0; | 177 | return 0; |
178 | } | 178 | } |
179 | 179 | ||
180 | static struct seq_operations mpc_op = { | 180 | static const struct seq_operations mpc_op = { |
181 | .start = mpc_start, | 181 | .start = mpc_start, |
182 | .next = mpc_next, | 182 | .next = mpc_next, |
183 | .stop = mpc_stop, | 183 | .stop = mpc_stop, |
diff --git a/net/atm/proc.c b/net/atm/proc.c index 9e61e512f667..88154da62cd3 100644 --- a/net/atm/proc.c +++ b/net/atm/proc.c | |||
@@ -260,7 +260,7 @@ static int atm_dev_seq_show(struct seq_file *seq, void *v) | |||
260 | return 0; | 260 | return 0; |
261 | } | 261 | } |
262 | 262 | ||
263 | static struct seq_operations atm_dev_seq_ops = { | 263 | static const struct seq_operations atm_dev_seq_ops = { |
264 | .start = atm_dev_seq_start, | 264 | .start = atm_dev_seq_start, |
265 | .next = atm_dev_seq_next, | 265 | .next = atm_dev_seq_next, |
266 | .stop = atm_dev_seq_stop, | 266 | .stop = atm_dev_seq_stop, |
@@ -295,7 +295,7 @@ static int pvc_seq_show(struct seq_file *seq, void *v) | |||
295 | return 0; | 295 | return 0; |
296 | } | 296 | } |
297 | 297 | ||
298 | static struct seq_operations pvc_seq_ops = { | 298 | static const struct seq_operations pvc_seq_ops = { |
299 | .start = vcc_seq_start, | 299 | .start = vcc_seq_start, |
300 | .next = vcc_seq_next, | 300 | .next = vcc_seq_next, |
301 | .stop = vcc_seq_stop, | 301 | .stop = vcc_seq_stop, |
@@ -329,7 +329,7 @@ static int vcc_seq_show(struct seq_file *seq, void *v) | |||
329 | return 0; | 329 | return 0; |
330 | } | 330 | } |
331 | 331 | ||
332 | static struct seq_operations vcc_seq_ops = { | 332 | static const struct seq_operations vcc_seq_ops = { |
333 | .start = vcc_seq_start, | 333 | .start = vcc_seq_start, |
334 | .next = vcc_seq_next, | 334 | .next = vcc_seq_next, |
335 | .stop = vcc_seq_stop, | 335 | .stop = vcc_seq_stop, |
@@ -364,7 +364,7 @@ static int svc_seq_show(struct seq_file *seq, void *v) | |||
364 | return 0; | 364 | return 0; |
365 | } | 365 | } |
366 | 366 | ||
367 | static struct seq_operations svc_seq_ops = { | 367 | static const struct seq_operations svc_seq_ops = { |
368 | .start = vcc_seq_start, | 368 | .start = vcc_seq_start, |
369 | .next = vcc_seq_next, | 369 | .next = vcc_seq_next, |
370 | .stop = vcc_seq_stop, | 370 | .stop = vcc_seq_stop, |
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 429e13a6c6ad..c83cf8432970 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c | |||
@@ -1924,7 +1924,7 @@ static int ax25_info_show(struct seq_file *seq, void *v) | |||
1924 | return 0; | 1924 | return 0; |
1925 | } | 1925 | } |
1926 | 1926 | ||
1927 | static struct seq_operations ax25_info_seqops = { | 1927 | static const struct seq_operations ax25_info_seqops = { |
1928 | .start = ax25_info_start, | 1928 | .start = ax25_info_start, |
1929 | .next = ax25_info_next, | 1929 | .next = ax25_info_next, |
1930 | .stop = ax25_info_stop, | 1930 | .stop = ax25_info_stop, |
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c index d65b8e22868d..9ecf6f1df863 100644 --- a/net/ax25/ax25_route.c +++ b/net/ax25/ax25_route.c | |||
@@ -320,7 +320,7 @@ static int ax25_rt_seq_show(struct seq_file *seq, void *v) | |||
320 | return 0; | 320 | return 0; |
321 | } | 321 | } |
322 | 322 | ||
323 | static struct seq_operations ax25_rt_seqops = { | 323 | static const struct seq_operations ax25_rt_seqops = { |
324 | .start = ax25_rt_seq_start, | 324 | .start = ax25_rt_seq_start, |
325 | .next = ax25_rt_seq_next, | 325 | .next = ax25_rt_seq_next, |
326 | .stop = ax25_rt_seq_stop, | 326 | .stop = ax25_rt_seq_stop, |
diff --git a/net/ax25/ax25_uid.c b/net/ax25/ax25_uid.c index 75c76647b2cb..ce0b13d44385 100644 --- a/net/ax25/ax25_uid.c +++ b/net/ax25/ax25_uid.c | |||
@@ -185,7 +185,7 @@ static int ax25_uid_seq_show(struct seq_file *seq, void *v) | |||
185 | return 0; | 185 | return 0; |
186 | } | 186 | } |
187 | 187 | ||
188 | static struct seq_operations ax25_uid_seqops = { | 188 | static const struct seq_operations ax25_uid_seqops = { |
189 | .start = ax25_uid_seq_start, | 189 | .start = ax25_uid_seq_start, |
190 | .next = ax25_uid_seq_next, | 190 | .next = ax25_uid_seq_next, |
191 | .stop = ax25_uid_seq_stop, | 191 | .stop = ax25_uid_seq_stop, |
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index bfa910b6ad25..ed76d4aab4a9 100644 --- a/net/decnet/af_decnet.c +++ b/net/decnet/af_decnet.c | |||
@@ -2304,7 +2304,7 @@ static int dn_socket_seq_show(struct seq_file *seq, void *v) | |||
2304 | return 0; | 2304 | return 0; |
2305 | } | 2305 | } |
2306 | 2306 | ||
2307 | static struct seq_operations dn_socket_seq_ops = { | 2307 | static const struct seq_operations dn_socket_seq_ops = { |
2308 | .start = dn_socket_seq_start, | 2308 | .start = dn_socket_seq_start, |
2309 | .next = dn_socket_seq_next, | 2309 | .next = dn_socket_seq_next, |
2310 | .stop = dn_socket_seq_stop, | 2310 | .stop = dn_socket_seq_stop, |
diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c index e31549e9d07a..fa6604fcf0e7 100644 --- a/net/decnet/dn_dev.c +++ b/net/decnet/dn_dev.c | |||
@@ -1416,7 +1416,7 @@ static int dn_dev_seq_show(struct seq_file *seq, void *v) | |||
1416 | return 0; | 1416 | return 0; |
1417 | } | 1417 | } |
1418 | 1418 | ||
1419 | static struct seq_operations dn_dev_seq_ops = { | 1419 | static const struct seq_operations dn_dev_seq_ops = { |
1420 | .start = dn_dev_seq_start, | 1420 | .start = dn_dev_seq_start, |
1421 | .next = dn_dev_seq_next, | 1421 | .next = dn_dev_seq_next, |
1422 | .stop = dn_dev_seq_stop, | 1422 | .stop = dn_dev_seq_stop, |
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c index 4bf066c416e2..174d8a7a6dac 100644 --- a/net/decnet/dn_neigh.c +++ b/net/decnet/dn_neigh.c | |||
@@ -569,7 +569,7 @@ static void *dn_neigh_seq_start(struct seq_file *seq, loff_t *pos) | |||
569 | NEIGH_SEQ_NEIGH_ONLY); | 569 | NEIGH_SEQ_NEIGH_ONLY); |
570 | } | 570 | } |
571 | 571 | ||
572 | static struct seq_operations dn_neigh_seq_ops = { | 572 | static const struct seq_operations dn_neigh_seq_ops = { |
573 | .start = dn_neigh_seq_start, | 573 | .start = dn_neigh_seq_start, |
574 | .next = neigh_seq_next, | 574 | .next = neigh_seq_next, |
575 | .stop = neigh_seq_stop, | 575 | .stop = neigh_seq_stop, |
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index a8bf106b7a61..82622fb6f68f 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -1726,7 +1726,7 @@ static int dn_rt_cache_seq_show(struct seq_file *seq, void *v) | |||
1726 | return 0; | 1726 | return 0; |
1727 | } | 1727 | } |
1728 | 1728 | ||
1729 | static struct seq_operations dn_rt_cache_seq_ops = { | 1729 | static const struct seq_operations dn_rt_cache_seq_ops = { |
1730 | .start = dn_rt_cache_seq_start, | 1730 | .start = dn_rt_cache_seq_start, |
1731 | .next = dn_rt_cache_seq_next, | 1731 | .next = dn_rt_cache_seq_next, |
1732 | .stop = dn_rt_cache_seq_stop, | 1732 | .stop = dn_rt_cache_seq_stop, |
diff --git a/net/ipv4/ipvs/ip_vs_app.c b/net/ipv4/ipvs/ip_vs_app.c index 15ad5dd2d984..8d6901d4e94f 100644 --- a/net/ipv4/ipvs/ip_vs_app.c +++ b/net/ipv4/ipvs/ip_vs_app.c | |||
@@ -549,7 +549,7 @@ static int ip_vs_app_seq_show(struct seq_file *seq, void *v) | |||
549 | return 0; | 549 | return 0; |
550 | } | 550 | } |
551 | 551 | ||
552 | static struct seq_operations ip_vs_app_seq_ops = { | 552 | static const struct seq_operations ip_vs_app_seq_ops = { |
553 | .start = ip_vs_app_seq_start, | 553 | .start = ip_vs_app_seq_start, |
554 | .next = ip_vs_app_seq_next, | 554 | .next = ip_vs_app_seq_next, |
555 | .stop = ip_vs_app_seq_stop, | 555 | .stop = ip_vs_app_seq_stop, |
diff --git a/net/ipv4/ipvs/ip_vs_conn.c b/net/ipv4/ipvs/ip_vs_conn.c index 7018f97c75dc..3b446b1a6b9c 100644 --- a/net/ipv4/ipvs/ip_vs_conn.c +++ b/net/ipv4/ipvs/ip_vs_conn.c | |||
@@ -745,7 +745,7 @@ static int ip_vs_conn_seq_show(struct seq_file *seq, void *v) | |||
745 | return 0; | 745 | return 0; |
746 | } | 746 | } |
747 | 747 | ||
748 | static struct seq_operations ip_vs_conn_seq_ops = { | 748 | static const struct seq_operations ip_vs_conn_seq_ops = { |
749 | .start = ip_vs_conn_seq_start, | 749 | .start = ip_vs_conn_seq_start, |
750 | .next = ip_vs_conn_seq_next, | 750 | .next = ip_vs_conn_seq_next, |
751 | .stop = ip_vs_conn_seq_stop, | 751 | .stop = ip_vs_conn_seq_stop, |
diff --git a/net/ipv4/ipvs/ip_vs_ctl.c b/net/ipv4/ipvs/ip_vs_ctl.c index 68fe1d4d0210..e1052bcf4ed1 100644 --- a/net/ipv4/ipvs/ip_vs_ctl.c +++ b/net/ipv4/ipvs/ip_vs_ctl.c | |||
@@ -1783,7 +1783,7 @@ static int ip_vs_info_seq_show(struct seq_file *seq, void *v) | |||
1783 | return 0; | 1783 | return 0; |
1784 | } | 1784 | } |
1785 | 1785 | ||
1786 | static struct seq_operations ip_vs_info_seq_ops = { | 1786 | static const struct seq_operations ip_vs_info_seq_ops = { |
1787 | .start = ip_vs_info_seq_start, | 1787 | .start = ip_vs_info_seq_start, |
1788 | .next = ip_vs_info_seq_next, | 1788 | .next = ip_vs_info_seq_next, |
1789 | .stop = ip_vs_info_seq_stop, | 1789 | .stop = ip_vs_info_seq_stop, |
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c index 8bacda3f6f6c..dcc12b183474 100644 --- a/net/ipv4/netfilter/ipt_CLUSTERIP.c +++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c | |||
@@ -639,7 +639,7 @@ static int clusterip_seq_show(struct seq_file *s, void *v) | |||
639 | return 0; | 639 | return 0; |
640 | } | 640 | } |
641 | 641 | ||
642 | static struct seq_operations clusterip_seq_ops = { | 642 | static const struct seq_operations clusterip_seq_ops = { |
643 | .start = clusterip_seq_start, | 643 | .start = clusterip_seq_start, |
644 | .next = clusterip_seq_next, | 644 | .next = clusterip_seq_next, |
645 | .stop = clusterip_seq_stop, | 645 | .stop = clusterip_seq_stop, |
diff --git a/net/ipv4/netfilter/ipt_recent.c b/net/ipv4/netfilter/ipt_recent.c index a7b14f2ae2dc..321804315659 100644 --- a/net/ipv4/netfilter/ipt_recent.c +++ b/net/ipv4/netfilter/ipt_recent.c | |||
@@ -370,7 +370,7 @@ static int recent_seq_show(struct seq_file *seq, void *v) | |||
370 | return 0; | 370 | return 0; |
371 | } | 371 | } |
372 | 372 | ||
373 | static struct seq_operations recent_seq_ops = { | 373 | static const struct seq_operations recent_seq_ops = { |
374 | .start = recent_seq_start, | 374 | .start = recent_seq_start, |
375 | .next = recent_seq_next, | 375 | .next = recent_seq_next, |
376 | .stop = recent_seq_stop, | 376 | .stop = recent_seq_stop, |
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c index 434e08410879..3da9d73d1b52 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | |||
@@ -164,7 +164,7 @@ static int ct_seq_show(struct seq_file *s, void *v) | |||
164 | return 0; | 164 | return 0; |
165 | } | 165 | } |
166 | 166 | ||
167 | static struct seq_operations ct_seq_ops = { | 167 | static const struct seq_operations ct_seq_ops = { |
168 | .start = ct_seq_start, | 168 | .start = ct_seq_start, |
169 | .next = ct_seq_next, | 169 | .next = ct_seq_next, |
170 | .stop = ct_seq_stop, | 170 | .stop = ct_seq_stop, |
@@ -282,7 +282,7 @@ static int exp_seq_show(struct seq_file *s, void *v) | |||
282 | return seq_putc(s, '\n'); | 282 | return seq_putc(s, '\n'); |
283 | } | 283 | } |
284 | 284 | ||
285 | static struct seq_operations exp_seq_ops = { | 285 | static const struct seq_operations exp_seq_ops = { |
286 | .start = exp_seq_start, | 286 | .start = exp_seq_start, |
287 | .next = exp_seq_next, | 287 | .next = exp_seq_next, |
288 | .stop = exp_seq_stop, | 288 | .stop = exp_seq_stop, |
@@ -386,7 +386,7 @@ static int ct_cpu_seq_show(struct seq_file *seq, void *v) | |||
386 | return 0; | 386 | return 0; |
387 | } | 387 | } |
388 | 388 | ||
389 | static struct seq_operations ct_cpu_seq_ops = { | 389 | static const struct seq_operations ct_cpu_seq_ops = { |
390 | .start = ct_cpu_seq_start, | 390 | .start = ct_cpu_seq_start, |
391 | .next = ct_cpu_seq_next, | 391 | .next = ct_cpu_seq_next, |
392 | .stop = ct_cpu_seq_stop, | 392 | .stop = ct_cpu_seq_stop, |
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 95737ab040ec..24424c3b7dc0 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -2785,7 +2785,7 @@ static int if6_seq_show(struct seq_file *seq, void *v) | |||
2785 | return 0; | 2785 | return 0; |
2786 | } | 2786 | } |
2787 | 2787 | ||
2788 | static struct seq_operations if6_seq_ops = { | 2788 | static const struct seq_operations if6_seq_ops = { |
2789 | .start = if6_seq_start, | 2789 | .start = if6_seq_start, |
2790 | .next = if6_seq_next, | 2790 | .next = if6_seq_next, |
2791 | .show = if6_seq_show, | 2791 | .show = if6_seq_show, |
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 9b81264eb78f..b8c533fbdb63 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c | |||
@@ -539,7 +539,7 @@ static int ac6_seq_show(struct seq_file *seq, void *v) | |||
539 | return 0; | 539 | return 0; |
540 | } | 540 | } |
541 | 541 | ||
542 | static struct seq_operations ac6_seq_ops = { | 542 | static const struct seq_operations ac6_seq_ops = { |
543 | .start = ac6_seq_start, | 543 | .start = ac6_seq_start, |
544 | .next = ac6_seq_next, | 544 | .next = ac6_seq_next, |
545 | .stop = ac6_seq_stop, | 545 | .stop = ac6_seq_stop, |
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c index c206a152ed9d..413a4ebb195c 100644 --- a/net/ipv6/ip6_flowlabel.c +++ b/net/ipv6/ip6_flowlabel.c | |||
@@ -648,7 +648,7 @@ static int ip6fl_seq_show(struct seq_file *seq, void *v) | |||
648 | return 0; | 648 | return 0; |
649 | } | 649 | } |
650 | 650 | ||
651 | static struct seq_operations ip6fl_seq_ops = { | 651 | static const struct seq_operations ip6fl_seq_ops = { |
652 | .start = ip6fl_seq_start, | 652 | .start = ip6fl_seq_start, |
653 | .next = ip6fl_seq_next, | 653 | .next = ip6fl_seq_next, |
654 | .stop = ip6fl_seq_stop, | 654 | .stop = ip6fl_seq_stop, |
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 3e308fb41b49..ae9881832a7e 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c | |||
@@ -2423,7 +2423,7 @@ static int igmp6_mc_seq_show(struct seq_file *seq, void *v) | |||
2423 | return 0; | 2423 | return 0; |
2424 | } | 2424 | } |
2425 | 2425 | ||
2426 | static struct seq_operations igmp6_mc_seq_ops = { | 2426 | static const struct seq_operations igmp6_mc_seq_ops = { |
2427 | .start = igmp6_mc_seq_start, | 2427 | .start = igmp6_mc_seq_start, |
2428 | .next = igmp6_mc_seq_next, | 2428 | .next = igmp6_mc_seq_next, |
2429 | .stop = igmp6_mc_seq_stop, | 2429 | .stop = igmp6_mc_seq_stop, |
@@ -2597,7 +2597,7 @@ static int igmp6_mcf_seq_show(struct seq_file *seq, void *v) | |||
2597 | return 0; | 2597 | return 0; |
2598 | } | 2598 | } |
2599 | 2599 | ||
2600 | static struct seq_operations igmp6_mcf_seq_ops = { | 2600 | static const struct seq_operations igmp6_mcf_seq_ops = { |
2601 | .start = igmp6_mcf_seq_start, | 2601 | .start = igmp6_mcf_seq_start, |
2602 | .next = igmp6_mcf_seq_next, | 2602 | .next = igmp6_mcf_seq_next, |
2603 | .stop = igmp6_mcf_seq_stop, | 2603 | .stop = igmp6_mcf_seq_stop, |
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index aac6aeb8de8c..e27383d855de 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -1280,7 +1280,7 @@ static int raw6_seq_show(struct seq_file *seq, void *v) | |||
1280 | return 0; | 1280 | return 0; |
1281 | } | 1281 | } |
1282 | 1282 | ||
1283 | static struct seq_operations raw6_seq_ops = { | 1283 | static const struct seq_operations raw6_seq_ops = { |
1284 | .start = raw6_seq_start, | 1284 | .start = raw6_seq_start, |
1285 | .next = raw6_seq_next, | 1285 | .next = raw6_seq_next, |
1286 | .stop = raw6_seq_stop, | 1286 | .stop = raw6_seq_stop, |
diff --git a/net/ipx/ipx_proc.c b/net/ipx/ipx_proc.c index db32ac8e79bd..4226e71ae1e3 100644 --- a/net/ipx/ipx_proc.c +++ b/net/ipx/ipx_proc.c | |||
@@ -286,21 +286,21 @@ out: | |||
286 | return 0; | 286 | return 0; |
287 | } | 287 | } |
288 | 288 | ||
289 | static struct seq_operations ipx_seq_interface_ops = { | 289 | static const struct seq_operations ipx_seq_interface_ops = { |
290 | .start = ipx_seq_interface_start, | 290 | .start = ipx_seq_interface_start, |
291 | .next = ipx_seq_interface_next, | 291 | .next = ipx_seq_interface_next, |
292 | .stop = ipx_seq_interface_stop, | 292 | .stop = ipx_seq_interface_stop, |
293 | .show = ipx_seq_interface_show, | 293 | .show = ipx_seq_interface_show, |
294 | }; | 294 | }; |
295 | 295 | ||
296 | static struct seq_operations ipx_seq_route_ops = { | 296 | static const struct seq_operations ipx_seq_route_ops = { |
297 | .start = ipx_seq_route_start, | 297 | .start = ipx_seq_route_start, |
298 | .next = ipx_seq_route_next, | 298 | .next = ipx_seq_route_next, |
299 | .stop = ipx_seq_route_stop, | 299 | .stop = ipx_seq_route_stop, |
300 | .show = ipx_seq_route_show, | 300 | .show = ipx_seq_route_show, |
301 | }; | 301 | }; |
302 | 302 | ||
303 | static struct seq_operations ipx_seq_socket_ops = { | 303 | static const struct seq_operations ipx_seq_socket_ops = { |
304 | .start = ipx_seq_socket_start, | 304 | .start = ipx_seq_socket_start, |
305 | .next = ipx_seq_socket_next, | 305 | .next = ipx_seq_socket_next, |
306 | .stop = ipx_seq_interface_stop, | 306 | .stop = ipx_seq_interface_stop, |
diff --git a/net/irda/discovery.c b/net/irda/discovery.c index f09734128674..af0cea721d2a 100644 --- a/net/irda/discovery.c +++ b/net/irda/discovery.c | |||
@@ -395,7 +395,7 @@ static int discovery_seq_show(struct seq_file *seq, void *v) | |||
395 | return 0; | 395 | return 0; |
396 | } | 396 | } |
397 | 397 | ||
398 | static struct seq_operations discovery_seq_ops = { | 398 | static const struct seq_operations discovery_seq_ops = { |
399 | .start = discovery_seq_start, | 399 | .start = discovery_seq_start, |
400 | .next = discovery_seq_next, | 400 | .next = discovery_seq_next, |
401 | .stop = discovery_seq_stop, | 401 | .stop = discovery_seq_stop, |
diff --git a/net/irda/ircomm/ircomm_core.c b/net/irda/ircomm/ircomm_core.c index 4749f8f55391..2d63fa8e1556 100644 --- a/net/irda/ircomm/ircomm_core.c +++ b/net/irda/ircomm/ircomm_core.c | |||
@@ -562,7 +562,7 @@ static int ircomm_seq_show(struct seq_file *seq, void *v) | |||
562 | return 0; | 562 | return 0; |
563 | } | 563 | } |
564 | 564 | ||
565 | static struct seq_operations ircomm_seq_ops = { | 565 | static const struct seq_operations ircomm_seq_ops = { |
566 | .start = ircomm_seq_start, | 566 | .start = ircomm_seq_start, |
567 | .next = ircomm_seq_next, | 567 | .next = ircomm_seq_next, |
568 | .stop = ircomm_seq_stop, | 568 | .stop = ircomm_seq_stop, |
diff --git a/net/irda/iriap.c b/net/irda/iriap.c index 915d9384f36a..774eb707940c 100644 --- a/net/irda/iriap.c +++ b/net/irda/iriap.c | |||
@@ -1066,7 +1066,7 @@ static int irias_seq_show(struct seq_file *seq, void *v) | |||
1066 | return 0; | 1066 | return 0; |
1067 | } | 1067 | } |
1068 | 1068 | ||
1069 | static struct seq_operations irias_seq_ops = { | 1069 | static const struct seq_operations irias_seq_ops = { |
1070 | .start = irias_seq_start, | 1070 | .start = irias_seq_start, |
1071 | .next = irias_seq_next, | 1071 | .next = irias_seq_next, |
1072 | .stop = irias_seq_stop, | 1072 | .stop = irias_seq_stop, |
diff --git a/net/irda/irlan/irlan_common.c b/net/irda/irlan/irlan_common.c index ed69773b0f8e..f5778ef3ccc7 100644 --- a/net/irda/irlan/irlan_common.c +++ b/net/irda/irlan/irlan_common.c | |||
@@ -1217,7 +1217,7 @@ static int irlan_seq_show(struct seq_file *seq, void *v) | |||
1217 | return 0; | 1217 | return 0; |
1218 | } | 1218 | } |
1219 | 1219 | ||
1220 | static struct seq_operations irlan_seq_ops = { | 1220 | static const struct seq_operations irlan_seq_ops = { |
1221 | .start = irlan_seq_start, | 1221 | .start = irlan_seq_start, |
1222 | .next = irlan_seq_next, | 1222 | .next = irlan_seq_next, |
1223 | .stop = irlan_seq_stop, | 1223 | .stop = irlan_seq_stop, |
diff --git a/net/irda/irlap.c b/net/irda/irlap.c index d93ebd11431e..2fc9f518f89d 100644 --- a/net/irda/irlap.c +++ b/net/irda/irlap.c | |||
@@ -1210,7 +1210,7 @@ static int irlap_seq_show(struct seq_file *seq, void *v) | |||
1210 | return 0; | 1210 | return 0; |
1211 | } | 1211 | } |
1212 | 1212 | ||
1213 | static struct seq_operations irlap_seq_ops = { | 1213 | static const struct seq_operations irlap_seq_ops = { |
1214 | .start = irlap_seq_start, | 1214 | .start = irlap_seq_start, |
1215 | .next = irlap_seq_next, | 1215 | .next = irlap_seq_next, |
1216 | .stop = irlap_seq_stop, | 1216 | .stop = irlap_seq_stop, |
diff --git a/net/irda/irlmp.c b/net/irda/irlmp.c index 9df0461b6d18..24a5e3f23778 100644 --- a/net/irda/irlmp.c +++ b/net/irda/irlmp.c | |||
@@ -1994,7 +1994,7 @@ static int irlmp_seq_show(struct seq_file *seq, void *v) | |||
1994 | return 0; | 1994 | return 0; |
1995 | } | 1995 | } |
1996 | 1996 | ||
1997 | static struct seq_operations irlmp_seq_ops = { | 1997 | static const struct seq_operations irlmp_seq_ops = { |
1998 | .start = irlmp_seq_start, | 1998 | .start = irlmp_seq_start, |
1999 | .next = irlmp_seq_next, | 1999 | .next = irlmp_seq_next, |
2000 | .stop = irlmp_seq_stop, | 2000 | .stop = irlmp_seq_stop, |
diff --git a/net/irda/irttp.c b/net/irda/irttp.c index ce4647542b9e..7f50832a2cd5 100644 --- a/net/irda/irttp.c +++ b/net/irda/irttp.c | |||
@@ -1875,7 +1875,7 @@ static int irttp_seq_show(struct seq_file *seq, void *v) | |||
1875 | return 0; | 1875 | return 0; |
1876 | } | 1876 | } |
1877 | 1877 | ||
1878 | static struct seq_operations irttp_seq_ops = { | 1878 | static const struct seq_operations irttp_seq_ops = { |
1879 | .start = irttp_seq_start, | 1879 | .start = irttp_seq_start, |
1880 | .next = irttp_seq_next, | 1880 | .next = irttp_seq_next, |
1881 | .stop = irttp_seq_stop, | 1881 | .stop = irttp_seq_stop, |
diff --git a/net/llc/llc_proc.c b/net/llc/llc_proc.c index 3ab9d9f8b17f..49be6c902c83 100644 --- a/net/llc/llc_proc.c +++ b/net/llc/llc_proc.c | |||
@@ -184,14 +184,14 @@ out: | |||
184 | return 0; | 184 | return 0; |
185 | } | 185 | } |
186 | 186 | ||
187 | static struct seq_operations llc_seq_socket_ops = { | 187 | static const struct seq_operations llc_seq_socket_ops = { |
188 | .start = llc_seq_start, | 188 | .start = llc_seq_start, |
189 | .next = llc_seq_next, | 189 | .next = llc_seq_next, |
190 | .stop = llc_seq_stop, | 190 | .stop = llc_seq_stop, |
191 | .show = llc_seq_socket_show, | 191 | .show = llc_seq_socket_show, |
192 | }; | 192 | }; |
193 | 193 | ||
194 | static struct seq_operations llc_seq_core_ops = { | 194 | static const struct seq_operations llc_seq_core_ops = { |
195 | .start = llc_seq_start, | 195 | .start = llc_seq_start, |
196 | .next = llc_seq_next, | 196 | .next = llc_seq_next, |
197 | .stop = llc_seq_stop, | 197 | .stop = llc_seq_stop, |
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c index 513828fdaa2c..2191fe008f60 100644 --- a/net/netfilter/nf_conntrack_expect.c +++ b/net/netfilter/nf_conntrack_expect.c | |||
@@ -464,7 +464,7 @@ static int exp_seq_show(struct seq_file *s, void *v) | |||
464 | return seq_putc(s, '\n'); | 464 | return seq_putc(s, '\n'); |
465 | } | 465 | } |
466 | 466 | ||
467 | static struct seq_operations exp_seq_ops = { | 467 | static const struct seq_operations exp_seq_ops = { |
468 | .start = exp_seq_start, | 468 | .start = exp_seq_start, |
469 | .next = exp_seq_next, | 469 | .next = exp_seq_next, |
470 | .stop = exp_seq_stop, | 470 | .stop = exp_seq_stop, |
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index 54498bcfa862..ffb6ff8c3528 100644 --- a/net/netfilter/nf_conntrack_standalone.c +++ b/net/netfilter/nf_conntrack_standalone.c | |||
@@ -185,7 +185,7 @@ static int ct_seq_show(struct seq_file *s, void *v) | |||
185 | return 0; | 185 | return 0; |
186 | } | 186 | } |
187 | 187 | ||
188 | static struct seq_operations ct_seq_ops = { | 188 | static const struct seq_operations ct_seq_ops = { |
189 | .start = ct_seq_start, | 189 | .start = ct_seq_start, |
190 | .next = ct_seq_next, | 190 | .next = ct_seq_next, |
191 | .stop = ct_seq_stop, | 191 | .stop = ct_seq_stop, |
@@ -289,7 +289,7 @@ static int ct_cpu_seq_show(struct seq_file *seq, void *v) | |||
289 | return 0; | 289 | return 0; |
290 | } | 290 | } |
291 | 291 | ||
292 | static struct seq_operations ct_cpu_seq_ops = { | 292 | static const struct seq_operations ct_cpu_seq_ops = { |
293 | .start = ct_cpu_seq_start, | 293 | .start = ct_cpu_seq_start, |
294 | .next = ct_cpu_seq_next, | 294 | .next = ct_cpu_seq_next, |
295 | .stop = ct_cpu_seq_stop, | 295 | .stop = ct_cpu_seq_stop, |
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 91b220cf5a1f..94985792b79a 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c | |||
@@ -140,7 +140,7 @@ static int seq_show(struct seq_file *s, void *v) | |||
140 | return seq_printf(s, "%2lld %s\n", *pos, logger->name); | 140 | return seq_printf(s, "%2lld %s\n", *pos, logger->name); |
141 | } | 141 | } |
142 | 142 | ||
143 | static struct seq_operations nflog_seq_ops = { | 143 | static const struct seq_operations nflog_seq_ops = { |
144 | .start = seq_start, | 144 | .start = seq_start, |
145 | .next = seq_next, | 145 | .next = seq_next, |
146 | .stop = seq_stop, | 146 | .stop = seq_stop, |
diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c index 823fbf404566..a481a349f7bf 100644 --- a/net/netfilter/nf_queue.c +++ b/net/netfilter/nf_queue.c | |||
@@ -330,7 +330,7 @@ static int seq_show(struct seq_file *s, void *v) | |||
330 | return ret; | 330 | return ret; |
331 | } | 331 | } |
332 | 332 | ||
333 | static struct seq_operations nfqueue_seq_ops = { | 333 | static const struct seq_operations nfqueue_seq_ops = { |
334 | .start = seq_start, | 334 | .start = seq_start, |
335 | .next = seq_next, | 335 | .next = seq_next, |
336 | .stop = seq_stop, | 336 | .stop = seq_stop, |
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index e32e30e7a17c..e185a5b55913 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c | |||
@@ -962,7 +962,7 @@ static int seq_show(struct seq_file *s, void *v) | |||
962 | inst->flushtimeout, atomic_read(&inst->use)); | 962 | inst->flushtimeout, atomic_read(&inst->use)); |
963 | } | 963 | } |
964 | 964 | ||
965 | static struct seq_operations nful_seq_ops = { | 965 | static const struct seq_operations nful_seq_ops = { |
966 | .start = seq_start, | 966 | .start = seq_start, |
967 | .next = seq_next, | 967 | .next = seq_next, |
968 | .stop = seq_stop, | 968 | .stop = seq_stop, |
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 7d47fc4b19c6..bb65a38c816c 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -1048,7 +1048,7 @@ static int seq_show(struct seq_file *s, void *v) | |||
1048 | atomic_read(&inst->use)); | 1048 | atomic_read(&inst->use)); |
1049 | } | 1049 | } |
1050 | 1050 | ||
1051 | static struct seq_operations nfqnl_seq_ops = { | 1051 | static const struct seq_operations nfqnl_seq_ops = { |
1052 | .start = seq_start, | 1052 | .start = seq_start, |
1053 | .next = seq_next, | 1053 | .next = seq_next, |
1054 | .stop = seq_stop, | 1054 | .stop = seq_stop, |
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index 520eddf4d61b..cc2baa6d5a7a 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c | |||
@@ -745,7 +745,7 @@ static int xt_name_seq_show(struct seq_file *seq, void *v) | |||
745 | return 0; | 745 | return 0; |
746 | } | 746 | } |
747 | 747 | ||
748 | static struct seq_operations xt_tgt_seq_ops = { | 748 | static const struct seq_operations xt_tgt_seq_ops = { |
749 | .start = xt_tgt_seq_start, | 749 | .start = xt_tgt_seq_start, |
750 | .next = xt_tgt_seq_next, | 750 | .next = xt_tgt_seq_next, |
751 | .stop = xt_tgt_seq_stop, | 751 | .stop = xt_tgt_seq_stop, |
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c index 5a6ea9b9108c..d6b3d01975b6 100644 --- a/net/netfilter/xt_hashlimit.c +++ b/net/netfilter/xt_hashlimit.c | |||
@@ -701,7 +701,7 @@ static int dl_seq_show(struct seq_file *s, void *v) | |||
701 | return 0; | 701 | return 0; |
702 | } | 702 | } |
703 | 703 | ||
704 | static struct seq_operations dl_seq_ops = { | 704 | static const struct seq_operations dl_seq_ops = { |
705 | .start = dl_seq_start, | 705 | .start = dl_seq_start, |
706 | .next = dl_seq_next, | 706 | .next = dl_seq_next, |
707 | .stop = dl_seq_stop, | 707 | .stop = dl_seq_stop, |
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 1f15821c8da4..a3c8e692f493 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1713,7 +1713,7 @@ static int netlink_seq_show(struct seq_file *seq, void *v) | |||
1713 | return 0; | 1713 | return 0; |
1714 | } | 1714 | } |
1715 | 1715 | ||
1716 | static struct seq_operations netlink_seq_ops = { | 1716 | static const struct seq_operations netlink_seq_ops = { |
1717 | .start = netlink_seq_start, | 1717 | .start = netlink_seq_start, |
1718 | .next = netlink_seq_next, | 1718 | .next = netlink_seq_next, |
1719 | .stop = netlink_seq_stop, | 1719 | .stop = netlink_seq_stop, |
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 5d4a26c2aa0c..5d66490dd290 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -1328,7 +1328,7 @@ static int nr_info_show(struct seq_file *seq, void *v) | |||
1328 | return 0; | 1328 | return 0; |
1329 | } | 1329 | } |
1330 | 1330 | ||
1331 | static struct seq_operations nr_info_seqops = { | 1331 | static const struct seq_operations nr_info_seqops = { |
1332 | .start = nr_info_start, | 1332 | .start = nr_info_start, |
1333 | .next = nr_info_next, | 1333 | .next = nr_info_next, |
1334 | .stop = nr_info_stop, | 1334 | .stop = nr_info_stop, |
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c index 2f76e062609d..24fe4a66d297 100644 --- a/net/netrom/nr_route.c +++ b/net/netrom/nr_route.c | |||
@@ -922,7 +922,7 @@ static int nr_node_show(struct seq_file *seq, void *v) | |||
922 | return 0; | 922 | return 0; |
923 | } | 923 | } |
924 | 924 | ||
925 | static struct seq_operations nr_node_seqops = { | 925 | static const struct seq_operations nr_node_seqops = { |
926 | .start = nr_node_start, | 926 | .start = nr_node_start, |
927 | .next = nr_node_next, | 927 | .next = nr_node_next, |
928 | .stop = nr_node_stop, | 928 | .stop = nr_node_stop, |
@@ -1006,7 +1006,7 @@ static int nr_neigh_show(struct seq_file *seq, void *v) | |||
1006 | return 0; | 1006 | return 0; |
1007 | } | 1007 | } |
1008 | 1008 | ||
1009 | static struct seq_operations nr_neigh_seqops = { | 1009 | static const struct seq_operations nr_neigh_seqops = { |
1010 | .start = nr_neigh_start, | 1010 | .start = nr_neigh_start, |
1011 | .next = nr_neigh_next, | 1011 | .next = nr_neigh_next, |
1012 | .stop = nr_neigh_stop, | 1012 | .stop = nr_neigh_stop, |
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index f8b83014ccca..7c27bd389b7e 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -1928,7 +1928,7 @@ static int packet_seq_show(struct seq_file *seq, void *v) | |||
1928 | return 0; | 1928 | return 0; |
1929 | } | 1929 | } |
1930 | 1930 | ||
1931 | static struct seq_operations packet_seq_ops = { | 1931 | static const struct seq_operations packet_seq_ops = { |
1932 | .start = packet_seq_start, | 1932 | .start = packet_seq_start, |
1933 | .next = packet_seq_next, | 1933 | .next = packet_seq_next, |
1934 | .stop = packet_seq_stop, | 1934 | .stop = packet_seq_stop, |
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index d476c43d5216..f4d3aba00800 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -1454,7 +1454,7 @@ static int rose_info_show(struct seq_file *seq, void *v) | |||
1454 | return 0; | 1454 | return 0; |
1455 | } | 1455 | } |
1456 | 1456 | ||
1457 | static struct seq_operations rose_info_seqops = { | 1457 | static const struct seq_operations rose_info_seqops = { |
1458 | .start = rose_info_start, | 1458 | .start = rose_info_start, |
1459 | .next = rose_info_next, | 1459 | .next = rose_info_next, |
1460 | .stop = rose_info_stop, | 1460 | .stop = rose_info_stop, |
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index 929a784a86d7..bbcbad1da0d0 100644 --- a/net/rose/rose_route.c +++ b/net/rose/rose_route.c | |||
@@ -1118,7 +1118,7 @@ static int rose_node_show(struct seq_file *seq, void *v) | |||
1118 | return 0; | 1118 | return 0; |
1119 | } | 1119 | } |
1120 | 1120 | ||
1121 | static struct seq_operations rose_node_seqops = { | 1121 | static const struct seq_operations rose_node_seqops = { |
1122 | .start = rose_node_start, | 1122 | .start = rose_node_start, |
1123 | .next = rose_node_next, | 1123 | .next = rose_node_next, |
1124 | .stop = rose_node_stop, | 1124 | .stop = rose_node_stop, |
@@ -1200,7 +1200,7 @@ static int rose_neigh_show(struct seq_file *seq, void *v) | |||
1200 | } | 1200 | } |
1201 | 1201 | ||
1202 | 1202 | ||
1203 | static struct seq_operations rose_neigh_seqops = { | 1203 | static const struct seq_operations rose_neigh_seqops = { |
1204 | .start = rose_neigh_start, | 1204 | .start = rose_neigh_start, |
1205 | .next = rose_neigh_next, | 1205 | .next = rose_neigh_next, |
1206 | .stop = rose_neigh_stop, | 1206 | .stop = rose_neigh_stop, |
@@ -1284,7 +1284,7 @@ static int rose_route_show(struct seq_file *seq, void *v) | |||
1284 | return 0; | 1284 | return 0; |
1285 | } | 1285 | } |
1286 | 1286 | ||
1287 | static struct seq_operations rose_route_seqops = { | 1287 | static const struct seq_operations rose_route_seqops = { |
1288 | .start = rose_route_start, | 1288 | .start = rose_route_start, |
1289 | .next = rose_route_next, | 1289 | .next = rose_route_next, |
1290 | .stop = rose_route_stop, | 1290 | .stop = rose_route_stop, |
diff --git a/net/rxrpc/ar-proc.c b/net/rxrpc/ar-proc.c index 77cc5fb17dcd..2e83ce325d15 100644 --- a/net/rxrpc/ar-proc.c +++ b/net/rxrpc/ar-proc.c | |||
@@ -86,7 +86,7 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v) | |||
86 | return 0; | 86 | return 0; |
87 | } | 87 | } |
88 | 88 | ||
89 | static struct seq_operations rxrpc_call_seq_ops = { | 89 | static const struct seq_operations rxrpc_call_seq_ops = { |
90 | .start = rxrpc_call_seq_start, | 90 | .start = rxrpc_call_seq_start, |
91 | .next = rxrpc_call_seq_next, | 91 | .next = rxrpc_call_seq_next, |
92 | .stop = rxrpc_call_seq_stop, | 92 | .stop = rxrpc_call_seq_stop, |
@@ -170,7 +170,7 @@ static int rxrpc_connection_seq_show(struct seq_file *seq, void *v) | |||
170 | return 0; | 170 | return 0; |
171 | } | 171 | } |
172 | 172 | ||
173 | static struct seq_operations rxrpc_connection_seq_ops = { | 173 | static const struct seq_operations rxrpc_connection_seq_ops = { |
174 | .start = rxrpc_connection_seq_start, | 174 | .start = rxrpc_connection_seq_start, |
175 | .next = rxrpc_connection_seq_next, | 175 | .next = rxrpc_connection_seq_next, |
176 | .stop = rxrpc_connection_seq_stop, | 176 | .stop = rxrpc_connection_seq_stop, |
diff --git a/net/sctp/proc.c b/net/sctp/proc.c index 2f12bf2d8d3c..e4cd841a22e4 100644 --- a/net/sctp/proc.c +++ b/net/sctp/proc.c | |||
@@ -250,7 +250,7 @@ static int sctp_eps_seq_show(struct seq_file *seq, void *v) | |||
250 | return 0; | 250 | return 0; |
251 | } | 251 | } |
252 | 252 | ||
253 | static struct seq_operations sctp_eps_ops = { | 253 | static const struct seq_operations sctp_eps_ops = { |
254 | .start = sctp_eps_seq_start, | 254 | .start = sctp_eps_seq_start, |
255 | .next = sctp_eps_seq_next, | 255 | .next = sctp_eps_seq_next, |
256 | .stop = sctp_eps_seq_stop, | 256 | .stop = sctp_eps_seq_stop, |
@@ -361,7 +361,7 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v) | |||
361 | return 0; | 361 | return 0; |
362 | } | 362 | } |
363 | 363 | ||
364 | static struct seq_operations sctp_assoc_ops = { | 364 | static const struct seq_operations sctp_assoc_ops = { |
365 | .start = sctp_assocs_seq_start, | 365 | .start = sctp_assocs_seq_start, |
366 | .next = sctp_assocs_seq_next, | 366 | .next = sctp_assocs_seq_next, |
367 | .stop = sctp_assocs_seq_stop, | 367 | .stop = sctp_assocs_seq_stop, |
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 543b085ae2c1..01c3c4105204 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -1210,7 +1210,7 @@ static int c_show(struct seq_file *m, void *p) | |||
1210 | return cd->cache_show(m, cd, cp); | 1210 | return cd->cache_show(m, cd, cp); |
1211 | } | 1211 | } |
1212 | 1212 | ||
1213 | static struct seq_operations cache_content_op = { | 1213 | static const struct seq_operations cache_content_op = { |
1214 | .start = c_start, | 1214 | .start = c_start, |
1215 | .next = c_next, | 1215 | .next = c_next, |
1216 | .stop = c_stop, | 1216 | .stop = c_stop, |
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index d70fa30d4294..3654b647ac79 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -2048,7 +2048,7 @@ static int unix_seq_show(struct seq_file *seq, void *v) | |||
2048 | return 0; | 2048 | return 0; |
2049 | } | 2049 | } |
2050 | 2050 | ||
2051 | static struct seq_operations unix_seq_ops = { | 2051 | static const struct seq_operations unix_seq_ops = { |
2052 | .start = unix_seq_start, | 2052 | .start = unix_seq_start, |
2053 | .next = unix_seq_next, | 2053 | .next = unix_seq_next, |
2054 | .stop = unix_seq_stop, | 2054 | .stop = unix_seq_stop, |
diff --git a/net/wanrouter/wanproc.c b/net/wanrouter/wanproc.c index 205106521ecb..236e7eaf1b7f 100644 --- a/net/wanrouter/wanproc.c +++ b/net/wanrouter/wanproc.c | |||
@@ -164,14 +164,14 @@ static int status_show(struct seq_file *m, void *v) | |||
164 | return 0; | 164 | return 0; |
165 | } | 165 | } |
166 | 166 | ||
167 | static struct seq_operations config_op = { | 167 | static const struct seq_operations config_op = { |
168 | .start = r_start, | 168 | .start = r_start, |
169 | .next = r_next, | 169 | .next = r_next, |
170 | .stop = r_stop, | 170 | .stop = r_stop, |
171 | .show = config_show, | 171 | .show = config_show, |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static struct seq_operations status_op = { | 174 | static const struct seq_operations status_op = { |
175 | .start = r_start, | 175 | .start = r_start, |
176 | .next = r_next, | 176 | .next = r_next, |
177 | .stop = r_stop, | 177 | .stop = r_stop, |
diff --git a/net/x25/x25_proc.c b/net/x25/x25_proc.c index 96001f0c64fc..7405b9c5b7f2 100644 --- a/net/x25/x25_proc.c +++ b/net/x25/x25_proc.c | |||
@@ -234,21 +234,21 @@ out: | |||
234 | return 0; | 234 | return 0; |
235 | } | 235 | } |
236 | 236 | ||
237 | static struct seq_operations x25_seq_route_ops = { | 237 | static const struct seq_operations x25_seq_route_ops = { |
238 | .start = x25_seq_route_start, | 238 | .start = x25_seq_route_start, |
239 | .next = x25_seq_route_next, | 239 | .next = x25_seq_route_next, |
240 | .stop = x25_seq_route_stop, | 240 | .stop = x25_seq_route_stop, |
241 | .show = x25_seq_route_show, | 241 | .show = x25_seq_route_show, |
242 | }; | 242 | }; |
243 | 243 | ||
244 | static struct seq_operations x25_seq_socket_ops = { | 244 | static const struct seq_operations x25_seq_socket_ops = { |
245 | .start = x25_seq_socket_start, | 245 | .start = x25_seq_socket_start, |
246 | .next = x25_seq_socket_next, | 246 | .next = x25_seq_socket_next, |
247 | .stop = x25_seq_socket_stop, | 247 | .stop = x25_seq_socket_stop, |
248 | .show = x25_seq_socket_show, | 248 | .show = x25_seq_socket_show, |
249 | }; | 249 | }; |
250 | 250 | ||
251 | static struct seq_operations x25_seq_forward_ops = { | 251 | static const struct seq_operations x25_seq_forward_ops = { |
252 | .start = x25_seq_forward_start, | 252 | .start = x25_seq_forward_start, |
253 | .next = x25_seq_forward_next, | 253 | .next = x25_seq_forward_next, |
254 | .stop = x25_seq_forward_stop, | 254 | .stop = x25_seq_forward_stop, |