Browse Source

[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>
Philippe De Muyter 18 years ago
parent
commit
56b3d975bb
56 changed files with 76 additions and 76 deletions
  1. 1 1
      net/802/tr.c
  2. 1 1
      net/8021q/vlanproc.c
  3. 1 1
      net/appletalk/aarp.c
  4. 3 3
      net/appletalk/atalk_proc.c
  5. 1 1
      net/atm/br2684.c
  6. 1 1
      net/atm/clip.c
  7. 1 1
      net/atm/lec.c
  8. 1 1
      net/atm/mpoa_proc.c
  9. 4 4
      net/atm/proc.c
  10. 1 1
      net/ax25/af_ax25.c
  11. 1 1
      net/ax25/ax25_route.c
  12. 1 1
      net/ax25/ax25_uid.c
  13. 1 1
      net/decnet/af_decnet.c
  14. 1 1
      net/decnet/dn_dev.c
  15. 1 1
      net/decnet/dn_neigh.c
  16. 1 1
      net/decnet/dn_route.c
  17. 1 1
      net/ipv4/ipvs/ip_vs_app.c
  18. 1 1
      net/ipv4/ipvs/ip_vs_conn.c
  19. 1 1
      net/ipv4/ipvs/ip_vs_ctl.c
  20. 1 1
      net/ipv4/netfilter/ipt_CLUSTERIP.c
  21. 1 1
      net/ipv4/netfilter/ipt_recent.c
  22. 3 3
      net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c
  23. 1 1
      net/ipv6/addrconf.c
  24. 1 1
      net/ipv6/anycast.c
  25. 1 1
      net/ipv6/ip6_flowlabel.c
  26. 2 2
      net/ipv6/mcast.c
  27. 1 1
      net/ipv6/raw.c
  28. 3 3
      net/ipx/ipx_proc.c
  29. 1 1
      net/irda/discovery.c
  30. 1 1
      net/irda/ircomm/ircomm_core.c
  31. 1 1
      net/irda/iriap.c
  32. 1 1
      net/irda/irlan/irlan_common.c
  33. 1 1
      net/irda/irlap.c
  34. 1 1
      net/irda/irlmp.c
  35. 1 1
      net/irda/irttp.c
  36. 2 2
      net/llc/llc_proc.c
  37. 1 1
      net/netfilter/nf_conntrack_expect.c
  38. 2 2
      net/netfilter/nf_conntrack_standalone.c
  39. 1 1
      net/netfilter/nf_log.c
  40. 1 1
      net/netfilter/nf_queue.c
  41. 1 1
      net/netfilter/nfnetlink_log.c
  42. 1 1
      net/netfilter/nfnetlink_queue.c
  43. 1 1
      net/netfilter/x_tables.c
  44. 1 1
      net/netfilter/xt_hashlimit.c
  45. 1 1
      net/netlink/af_netlink.c
  46. 1 1
      net/netrom/af_netrom.c
  47. 2 2
      net/netrom/nr_route.c
  48. 1 1
      net/packet/af_packet.c
  49. 1 1
      net/rose/af_rose.c
  50. 3 3
      net/rose/rose_route.c
  51. 2 2
      net/rxrpc/ar-proc.c
  52. 2 2
      net/sctp/proc.c
  53. 1 1
      net/sunrpc/cache.c
  54. 1 1
      net/unix/af_unix.c
  55. 2 2
      net/wanrouter/wanproc.c
  56. 3 3
      net/x25/x25_proc.c

+ 1 - 1
net/802/tr.c

@@ -567,7 +567,7 @@ static int rif_seq_show(struct seq_file *seq, void *v)
 }
 }
 
 
 
 
-static struct seq_operations rif_seq_ops = {
+static const struct seq_operations rif_seq_ops = {
 	.start = rif_seq_start,
 	.start = rif_seq_start,
 	.next  = rif_seq_next,
 	.next  = rif_seq_next,
 	.stop  = rif_seq_stop,
 	.stop  = rif_seq_stop,

+ 1 - 1
net/8021q/vlanproc.c

@@ -69,7 +69,7 @@ static const char name_conf[]	 = "config";
  *	Generic /proc/net/vlan/<file> file and inode operations
  *	Generic /proc/net/vlan/<file> file and inode operations
  */
  */
 
 
-static struct seq_operations vlan_seq_ops = {
+static const struct seq_operations vlan_seq_ops = {
 	.start = vlan_seq_start,
 	.start = vlan_seq_start,
 	.next = vlan_seq_next,
 	.next = vlan_seq_next,
 	.stop = vlan_seq_stop,
 	.stop = vlan_seq_stop,

+ 1 - 1
net/appletalk/aarp.c

@@ -1024,7 +1024,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations aarp_seq_ops = {
+static const struct seq_operations aarp_seq_ops = {
 	.start  = aarp_seq_start,
 	.start  = aarp_seq_start,
 	.next   = aarp_seq_next,
 	.next   = aarp_seq_next,
 	.stop   = aarp_seq_stop,
 	.stop   = aarp_seq_stop,

+ 3 - 3
net/appletalk/atalk_proc.c

@@ -204,21 +204,21 @@ out:
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations atalk_seq_interface_ops = {
+static const struct seq_operations atalk_seq_interface_ops = {
 	.start  = atalk_seq_interface_start,
 	.start  = atalk_seq_interface_start,
 	.next   = atalk_seq_interface_next,
 	.next   = atalk_seq_interface_next,
 	.stop   = atalk_seq_interface_stop,
 	.stop   = atalk_seq_interface_stop,
 	.show   = atalk_seq_interface_show,
 	.show   = atalk_seq_interface_show,
 };
 };
 
 
-static struct seq_operations atalk_seq_route_ops = {
+static const struct seq_operations atalk_seq_route_ops = {
 	.start  = atalk_seq_route_start,
 	.start  = atalk_seq_route_start,
 	.next   = atalk_seq_route_next,
 	.next   = atalk_seq_route_next,
 	.stop   = atalk_seq_route_stop,
 	.stop   = atalk_seq_route_stop,
 	.show   = atalk_seq_route_show,
 	.show   = atalk_seq_route_show,
 };
 };
 
 
-static struct seq_operations atalk_seq_socket_ops = {
+static const struct seq_operations atalk_seq_socket_ops = {
 	.start  = atalk_seq_socket_start,
 	.start  = atalk_seq_socket_start,
 	.next   = atalk_seq_socket_next,
 	.next   = atalk_seq_socket_next,
 	.stop   = atalk_seq_socket_stop,
 	.stop   = atalk_seq_socket_stop,

+ 1 - 1
net/atm/br2684.c

@@ -758,7 +758,7 @@ static int br2684_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations br2684_seq_ops = {
+static const struct seq_operations br2684_seq_ops = {
 	.start = br2684_seq_start,
 	.start = br2684_seq_start,
 	.next  = br2684_seq_next,
 	.next  = br2684_seq_next,
 	.stop  = br2684_seq_stop,
 	.stop  = br2684_seq_stop,

+ 1 - 1
net/atm/clip.c

@@ -928,7 +928,7 @@ static int clip_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations arp_seq_ops = {
+static const struct seq_operations arp_seq_ops = {
 	.start	= clip_seq_start,
 	.start	= clip_seq_start,
 	.next	= neigh_seq_next,
 	.next	= neigh_seq_next,
 	.stop	= neigh_seq_stop,
 	.stop	= neigh_seq_stop,

+ 1 - 1
net/atm/lec.c

@@ -1174,7 +1174,7 @@ static int lec_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations lec_seq_ops = {
+static const struct seq_operations lec_seq_ops = {
 	.start = lec_seq_start,
 	.start = lec_seq_start,
 	.next = lec_seq_next,
 	.next = lec_seq_next,
 	.stop = lec_seq_stop,
 	.stop = lec_seq_stop,

+ 1 - 1
net/atm/mpoa_proc.c

@@ -177,7 +177,7 @@ static int mpc_show(struct seq_file *m, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations mpc_op = {
+static const struct seq_operations mpc_op = {
 	.start =	mpc_start,
 	.start =	mpc_start,
 	.next =		mpc_next,
 	.next =		mpc_next,
 	.stop =		mpc_stop,
 	.stop =		mpc_stop,

+ 4 - 4
net/atm/proc.c

@@ -260,7 +260,7 @@ static int atm_dev_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations atm_dev_seq_ops = {
+static const struct seq_operations atm_dev_seq_ops = {
 	.start	= atm_dev_seq_start,
 	.start	= atm_dev_seq_start,
 	.next	= atm_dev_seq_next,
 	.next	= atm_dev_seq_next,
 	.stop	= atm_dev_seq_stop,
 	.stop	= atm_dev_seq_stop,
@@ -295,7 +295,7 @@ static int pvc_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations pvc_seq_ops = {
+static const struct seq_operations pvc_seq_ops = {
 	.start	= vcc_seq_start,
 	.start	= vcc_seq_start,
 	.next	= vcc_seq_next,
 	.next	= vcc_seq_next,
 	.stop	= vcc_seq_stop,
 	.stop	= vcc_seq_stop,
@@ -329,7 +329,7 @@ static int vcc_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations vcc_seq_ops = {
+static const struct seq_operations vcc_seq_ops = {
 	.start	= vcc_seq_start,
 	.start	= vcc_seq_start,
 	.next	= vcc_seq_next,
 	.next	= vcc_seq_next,
 	.stop	= vcc_seq_stop,
 	.stop	= vcc_seq_stop,
@@ -364,7 +364,7 @@ static int svc_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations svc_seq_ops = {
+static const struct seq_operations svc_seq_ops = {
 	.start	= vcc_seq_start,
 	.start	= vcc_seq_start,
 	.next	= vcc_seq_next,
 	.next	= vcc_seq_next,
 	.stop	= vcc_seq_stop,
 	.stop	= vcc_seq_stop,

+ 1 - 1
net/ax25/af_ax25.c

@@ -1924,7 +1924,7 @@ static int ax25_info_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ax25_info_seqops = {
+static const struct seq_operations ax25_info_seqops = {
 	.start = ax25_info_start,
 	.start = ax25_info_start,
 	.next = ax25_info_next,
 	.next = ax25_info_next,
 	.stop = ax25_info_stop,
 	.stop = ax25_info_stop,

+ 1 - 1
net/ax25/ax25_route.c

@@ -320,7 +320,7 @@ static int ax25_rt_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ax25_rt_seqops = {
+static const struct seq_operations ax25_rt_seqops = {
 	.start = ax25_rt_seq_start,
 	.start = ax25_rt_seq_start,
 	.next = ax25_rt_seq_next,
 	.next = ax25_rt_seq_next,
 	.stop = ax25_rt_seq_stop,
 	.stop = ax25_rt_seq_stop,

+ 1 - 1
net/ax25/ax25_uid.c

@@ -185,7 +185,7 @@ static int ax25_uid_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ax25_uid_seqops = {
+static const struct seq_operations ax25_uid_seqops = {
 	.start = ax25_uid_seq_start,
 	.start = ax25_uid_seq_start,
 	.next = ax25_uid_seq_next,
 	.next = ax25_uid_seq_next,
 	.stop = ax25_uid_seq_stop,
 	.stop = ax25_uid_seq_stop,

+ 1 - 1
net/decnet/af_decnet.c

@@ -2304,7 +2304,7 @@ static int dn_socket_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations dn_socket_seq_ops = {
+static const struct seq_operations dn_socket_seq_ops = {
 	.start	= dn_socket_seq_start,
 	.start	= dn_socket_seq_start,
 	.next	= dn_socket_seq_next,
 	.next	= dn_socket_seq_next,
 	.stop	= dn_socket_seq_stop,
 	.stop	= dn_socket_seq_stop,

+ 1 - 1
net/decnet/dn_dev.c

@@ -1416,7 +1416,7 @@ static int dn_dev_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations dn_dev_seq_ops = {
+static const struct seq_operations dn_dev_seq_ops = {
 	.start	= dn_dev_seq_start,
 	.start	= dn_dev_seq_start,
 	.next	= dn_dev_seq_next,
 	.next	= dn_dev_seq_next,
 	.stop	= dn_dev_seq_stop,
 	.stop	= dn_dev_seq_stop,

+ 1 - 1
net/decnet/dn_neigh.c

@@ -569,7 +569,7 @@ static void *dn_neigh_seq_start(struct seq_file *seq, loff_t *pos)
 			       NEIGH_SEQ_NEIGH_ONLY);
 			       NEIGH_SEQ_NEIGH_ONLY);
 }
 }
 
 
-static struct seq_operations dn_neigh_seq_ops = {
+static const struct seq_operations dn_neigh_seq_ops = {
 	.start = dn_neigh_seq_start,
 	.start = dn_neigh_seq_start,
 	.next  = neigh_seq_next,
 	.next  = neigh_seq_next,
 	.stop  = neigh_seq_stop,
 	.stop  = neigh_seq_stop,

+ 1 - 1
net/decnet/dn_route.c

@@ -1726,7 +1726,7 @@ static int dn_rt_cache_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations dn_rt_cache_seq_ops = {
+static const struct seq_operations dn_rt_cache_seq_ops = {
 	.start	= dn_rt_cache_seq_start,
 	.start	= dn_rt_cache_seq_start,
 	.next	= dn_rt_cache_seq_next,
 	.next	= dn_rt_cache_seq_next,
 	.stop	= dn_rt_cache_seq_stop,
 	.stop	= dn_rt_cache_seq_stop,

+ 1 - 1
net/ipv4/ipvs/ip_vs_app.c

@@ -549,7 +549,7 @@ static int ip_vs_app_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ip_vs_app_seq_ops = {
+static const struct seq_operations ip_vs_app_seq_ops = {
 	.start = ip_vs_app_seq_start,
 	.start = ip_vs_app_seq_start,
 	.next  = ip_vs_app_seq_next,
 	.next  = ip_vs_app_seq_next,
 	.stop  = ip_vs_app_seq_stop,
 	.stop  = ip_vs_app_seq_stop,

+ 1 - 1
net/ipv4/ipvs/ip_vs_conn.c

@@ -745,7 +745,7 @@ static int ip_vs_conn_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ip_vs_conn_seq_ops = {
+static const struct seq_operations ip_vs_conn_seq_ops = {
 	.start = ip_vs_conn_seq_start,
 	.start = ip_vs_conn_seq_start,
 	.next  = ip_vs_conn_seq_next,
 	.next  = ip_vs_conn_seq_next,
 	.stop  = ip_vs_conn_seq_stop,
 	.stop  = ip_vs_conn_seq_stop,

+ 1 - 1
net/ipv4/ipvs/ip_vs_ctl.c

@@ -1783,7 +1783,7 @@ static int ip_vs_info_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ip_vs_info_seq_ops = {
+static const struct seq_operations ip_vs_info_seq_ops = {
 	.start = ip_vs_info_seq_start,
 	.start = ip_vs_info_seq_start,
 	.next  = ip_vs_info_seq_next,
 	.next  = ip_vs_info_seq_next,
 	.stop  = ip_vs_info_seq_stop,
 	.stop  = ip_vs_info_seq_stop,

+ 1 - 1
net/ipv4/netfilter/ipt_CLUSTERIP.c

@@ -639,7 +639,7 @@ static int clusterip_seq_show(struct seq_file *s, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations clusterip_seq_ops = {
+static const struct seq_operations clusterip_seq_ops = {
 	.start	= clusterip_seq_start,
 	.start	= clusterip_seq_start,
 	.next	= clusterip_seq_next,
 	.next	= clusterip_seq_next,
 	.stop	= clusterip_seq_stop,
 	.stop	= clusterip_seq_stop,

+ 1 - 1
net/ipv4/netfilter/ipt_recent.c

@@ -370,7 +370,7 @@ static int recent_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations recent_seq_ops = {
+static const struct seq_operations recent_seq_ops = {
 	.start		= recent_seq_start,
 	.start		= recent_seq_start,
 	.next		= recent_seq_next,
 	.next		= recent_seq_next,
 	.stop		= recent_seq_stop,
 	.stop		= recent_seq_stop,

+ 3 - 3
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c

@@ -164,7 +164,7 @@ static int ct_seq_show(struct seq_file *s, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ct_seq_ops = {
+static const struct seq_operations ct_seq_ops = {
 	.start = ct_seq_start,
 	.start = ct_seq_start,
 	.next  = ct_seq_next,
 	.next  = ct_seq_next,
 	.stop  = ct_seq_stop,
 	.stop  = ct_seq_stop,
@@ -282,7 +282,7 @@ static int exp_seq_show(struct seq_file *s, void *v)
 	return seq_putc(s, '\n');
 	return seq_putc(s, '\n');
 }
 }
 
 
-static struct seq_operations exp_seq_ops = {
+static const struct seq_operations exp_seq_ops = {
 	.start = exp_seq_start,
 	.start = exp_seq_start,
 	.next = exp_seq_next,
 	.next = exp_seq_next,
 	.stop = exp_seq_stop,
 	.stop = exp_seq_stop,
@@ -386,7 +386,7 @@ static int ct_cpu_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ct_cpu_seq_ops = {
+static const struct seq_operations ct_cpu_seq_ops = {
 	.start  = ct_cpu_seq_start,
 	.start  = ct_cpu_seq_start,
 	.next   = ct_cpu_seq_next,
 	.next   = ct_cpu_seq_next,
 	.stop   = ct_cpu_seq_stop,
 	.stop   = ct_cpu_seq_stop,

+ 1 - 1
net/ipv6/addrconf.c

@@ -2785,7 +2785,7 @@ static int if6_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations if6_seq_ops = {
+static const struct seq_operations if6_seq_ops = {
 	.start	= if6_seq_start,
 	.start	= if6_seq_start,
 	.next	= if6_seq_next,
 	.next	= if6_seq_next,
 	.show	= if6_seq_show,
 	.show	= if6_seq_show,

+ 1 - 1
net/ipv6/anycast.c

@@ -539,7 +539,7 @@ static int ac6_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ac6_seq_ops = {
+static const struct seq_operations ac6_seq_ops = {
 	.start	=	ac6_seq_start,
 	.start	=	ac6_seq_start,
 	.next	=	ac6_seq_next,
 	.next	=	ac6_seq_next,
 	.stop	=	ac6_seq_stop,
 	.stop	=	ac6_seq_stop,

+ 1 - 1
net/ipv6/ip6_flowlabel.c

@@ -648,7 +648,7 @@ static int ip6fl_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ip6fl_seq_ops = {
+static const struct seq_operations ip6fl_seq_ops = {
 	.start	=	ip6fl_seq_start,
 	.start	=	ip6fl_seq_start,
 	.next	=	ip6fl_seq_next,
 	.next	=	ip6fl_seq_next,
 	.stop	=	ip6fl_seq_stop,
 	.stop	=	ip6fl_seq_stop,

+ 2 - 2
net/ipv6/mcast.c

@@ -2423,7 +2423,7 @@ static int igmp6_mc_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations igmp6_mc_seq_ops = {
+static const struct seq_operations igmp6_mc_seq_ops = {
 	.start	=	igmp6_mc_seq_start,
 	.start	=	igmp6_mc_seq_start,
 	.next	=	igmp6_mc_seq_next,
 	.next	=	igmp6_mc_seq_next,
 	.stop	=	igmp6_mc_seq_stop,
 	.stop	=	igmp6_mc_seq_stop,
@@ -2597,7 +2597,7 @@ static int igmp6_mcf_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations igmp6_mcf_seq_ops = {
+static const struct seq_operations igmp6_mcf_seq_ops = {
 	.start	=	igmp6_mcf_seq_start,
 	.start	=	igmp6_mcf_seq_start,
 	.next	=	igmp6_mcf_seq_next,
 	.next	=	igmp6_mcf_seq_next,
 	.stop	=	igmp6_mcf_seq_stop,
 	.stop	=	igmp6_mcf_seq_stop,

+ 1 - 1
net/ipv6/raw.c

@@ -1280,7 +1280,7 @@ static int raw6_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations raw6_seq_ops = {
+static const struct seq_operations raw6_seq_ops = {
 	.start =	raw6_seq_start,
 	.start =	raw6_seq_start,
 	.next =		raw6_seq_next,
 	.next =		raw6_seq_next,
 	.stop =		raw6_seq_stop,
 	.stop =		raw6_seq_stop,

+ 3 - 3
net/ipx/ipx_proc.c

@@ -286,21 +286,21 @@ out:
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ipx_seq_interface_ops = {
+static const struct seq_operations ipx_seq_interface_ops = {
 	.start  = ipx_seq_interface_start,
 	.start  = ipx_seq_interface_start,
 	.next   = ipx_seq_interface_next,
 	.next   = ipx_seq_interface_next,
 	.stop   = ipx_seq_interface_stop,
 	.stop   = ipx_seq_interface_stop,
 	.show   = ipx_seq_interface_show,
 	.show   = ipx_seq_interface_show,
 };
 };
 
 
-static struct seq_operations ipx_seq_route_ops = {
+static const struct seq_operations ipx_seq_route_ops = {
 	.start  = ipx_seq_route_start,
 	.start  = ipx_seq_route_start,
 	.next   = ipx_seq_route_next,
 	.next   = ipx_seq_route_next,
 	.stop   = ipx_seq_route_stop,
 	.stop   = ipx_seq_route_stop,
 	.show   = ipx_seq_route_show,
 	.show   = ipx_seq_route_show,
 };
 };
 
 
-static struct seq_operations ipx_seq_socket_ops = {
+static const struct seq_operations ipx_seq_socket_ops = {
 	.start  = ipx_seq_socket_start,
 	.start  = ipx_seq_socket_start,
 	.next   = ipx_seq_socket_next,
 	.next   = ipx_seq_socket_next,
 	.stop   = ipx_seq_interface_stop,
 	.stop   = ipx_seq_interface_stop,

+ 1 - 1
net/irda/discovery.c

@@ -395,7 +395,7 @@ static int discovery_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations discovery_seq_ops = {
+static const struct seq_operations discovery_seq_ops = {
 	.start  = discovery_seq_start,
 	.start  = discovery_seq_start,
 	.next   = discovery_seq_next,
 	.next   = discovery_seq_next,
 	.stop   = discovery_seq_stop,
 	.stop   = discovery_seq_stop,

+ 1 - 1
net/irda/ircomm/ircomm_core.c

@@ -562,7 +562,7 @@ static int ircomm_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ircomm_seq_ops = {
+static const struct seq_operations ircomm_seq_ops = {
 	.start  = ircomm_seq_start,
 	.start  = ircomm_seq_start,
 	.next   = ircomm_seq_next,
 	.next   = ircomm_seq_next,
 	.stop   = ircomm_seq_stop,
 	.stop   = ircomm_seq_stop,

+ 1 - 1
net/irda/iriap.c

@@ -1066,7 +1066,7 @@ static int irias_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations irias_seq_ops = {
+static const struct seq_operations irias_seq_ops = {
 	.start  = irias_seq_start,
 	.start  = irias_seq_start,
 	.next   = irias_seq_next,
 	.next   = irias_seq_next,
 	.stop   = irias_seq_stop,
 	.stop   = irias_seq_stop,

+ 1 - 1
net/irda/irlan/irlan_common.c

@@ -1217,7 +1217,7 @@ static int irlan_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations irlan_seq_ops = {
+static const struct seq_operations irlan_seq_ops = {
 	.start = irlan_seq_start,
 	.start = irlan_seq_start,
 	.next  = irlan_seq_next,
 	.next  = irlan_seq_next,
 	.stop  = irlan_seq_stop,
 	.stop  = irlan_seq_stop,

+ 1 - 1
net/irda/irlap.c

@@ -1210,7 +1210,7 @@ static int irlap_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations irlap_seq_ops = {
+static const struct seq_operations irlap_seq_ops = {
 	.start  = irlap_seq_start,
 	.start  = irlap_seq_start,
 	.next   = irlap_seq_next,
 	.next   = irlap_seq_next,
 	.stop   = irlap_seq_stop,
 	.stop   = irlap_seq_stop,

+ 1 - 1
net/irda/irlmp.c

@@ -1994,7 +1994,7 @@ static int irlmp_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations irlmp_seq_ops = {
+static const struct seq_operations irlmp_seq_ops = {
 	.start  = irlmp_seq_start,
 	.start  = irlmp_seq_start,
 	.next   = irlmp_seq_next,
 	.next   = irlmp_seq_next,
 	.stop   = irlmp_seq_stop,
 	.stop   = irlmp_seq_stop,

+ 1 - 1
net/irda/irttp.c

@@ -1875,7 +1875,7 @@ static int irttp_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations irttp_seq_ops = {
+static const struct seq_operations irttp_seq_ops = {
 	.start  = irttp_seq_start,
 	.start  = irttp_seq_start,
 	.next   = irttp_seq_next,
 	.next   = irttp_seq_next,
 	.stop   = irttp_seq_stop,
 	.stop   = irttp_seq_stop,

+ 2 - 2
net/llc/llc_proc.c

@@ -184,14 +184,14 @@ out:
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations llc_seq_socket_ops = {
+static const struct seq_operations llc_seq_socket_ops = {
 	.start  = llc_seq_start,
 	.start  = llc_seq_start,
 	.next   = llc_seq_next,
 	.next   = llc_seq_next,
 	.stop   = llc_seq_stop,
 	.stop   = llc_seq_stop,
 	.show   = llc_seq_socket_show,
 	.show   = llc_seq_socket_show,
 };
 };
 
 
-static struct seq_operations llc_seq_core_ops = {
+static const struct seq_operations llc_seq_core_ops = {
 	.start  = llc_seq_start,
 	.start  = llc_seq_start,
 	.next   = llc_seq_next,
 	.next   = llc_seq_next,
 	.stop   = llc_seq_stop,
 	.stop   = llc_seq_stop,

+ 1 - 1
net/netfilter/nf_conntrack_expect.c

@@ -464,7 +464,7 @@ static int exp_seq_show(struct seq_file *s, void *v)
 	return seq_putc(s, '\n');
 	return seq_putc(s, '\n');
 }
 }
 
 
-static struct seq_operations exp_seq_ops = {
+static const struct seq_operations exp_seq_ops = {
 	.start = exp_seq_start,
 	.start = exp_seq_start,
 	.next = exp_seq_next,
 	.next = exp_seq_next,
 	.stop = exp_seq_stop,
 	.stop = exp_seq_stop,

+ 2 - 2
net/netfilter/nf_conntrack_standalone.c

@@ -185,7 +185,7 @@ static int ct_seq_show(struct seq_file *s, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ct_seq_ops = {
+static const struct seq_operations ct_seq_ops = {
 	.start = ct_seq_start,
 	.start = ct_seq_start,
 	.next  = ct_seq_next,
 	.next  = ct_seq_next,
 	.stop  = ct_seq_stop,
 	.stop  = ct_seq_stop,
@@ -289,7 +289,7 @@ static int ct_cpu_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations ct_cpu_seq_ops = {
+static const struct seq_operations ct_cpu_seq_ops = {
 	.start	= ct_cpu_seq_start,
 	.start	= ct_cpu_seq_start,
 	.next	= ct_cpu_seq_next,
 	.next	= ct_cpu_seq_next,
 	.stop	= ct_cpu_seq_stop,
 	.stop	= ct_cpu_seq_stop,

+ 1 - 1
net/netfilter/nf_log.c

@@ -140,7 +140,7 @@ static int seq_show(struct seq_file *s, void *v)
 	return seq_printf(s, "%2lld %s\n", *pos, logger->name);
 	return seq_printf(s, "%2lld %s\n", *pos, logger->name);
 }
 }
 
 
-static struct seq_operations nflog_seq_ops = {
+static const struct seq_operations nflog_seq_ops = {
 	.start	= seq_start,
 	.start	= seq_start,
 	.next	= seq_next,
 	.next	= seq_next,
 	.stop	= seq_stop,
 	.stop	= seq_stop,

+ 1 - 1
net/netfilter/nf_queue.c

@@ -330,7 +330,7 @@ static int seq_show(struct seq_file *s, void *v)
 	return ret;
 	return ret;
 }
 }
 
 
-static struct seq_operations nfqueue_seq_ops = {
+static const struct seq_operations nfqueue_seq_ops = {
 	.start	= seq_start,
 	.start	= seq_start,
 	.next	= seq_next,
 	.next	= seq_next,
 	.stop	= seq_stop,
 	.stop	= seq_stop,

+ 1 - 1
net/netfilter/nfnetlink_log.c

@@ -962,7 +962,7 @@ static int seq_show(struct seq_file *s, void *v)
 			  inst->flushtimeout, atomic_read(&inst->use));
 			  inst->flushtimeout, atomic_read(&inst->use));
 }
 }
 
 
-static struct seq_operations nful_seq_ops = {
+static const struct seq_operations nful_seq_ops = {
 	.start	= seq_start,
 	.start	= seq_start,
 	.next	= seq_next,
 	.next	= seq_next,
 	.stop	= seq_stop,
 	.stop	= seq_stop,

+ 1 - 1
net/netfilter/nfnetlink_queue.c

@@ -1048,7 +1048,7 @@ static int seq_show(struct seq_file *s, void *v)
 			  atomic_read(&inst->use));
 			  atomic_read(&inst->use));
 }
 }
 
 
-static struct seq_operations nfqnl_seq_ops = {
+static const struct seq_operations nfqnl_seq_ops = {
 	.start	= seq_start,
 	.start	= seq_start,
 	.next	= seq_next,
 	.next	= seq_next,
 	.stop	= seq_stop,
 	.stop	= seq_stop,

+ 1 - 1
net/netfilter/x_tables.c

@@ -745,7 +745,7 @@ static int xt_name_seq_show(struct seq_file *seq, void *v)
 		return 0;
 		return 0;
 }
 }
 
 
-static struct seq_operations xt_tgt_seq_ops = {
+static const struct seq_operations xt_tgt_seq_ops = {
 	.start	= xt_tgt_seq_start,
 	.start	= xt_tgt_seq_start,
 	.next	= xt_tgt_seq_next,
 	.next	= xt_tgt_seq_next,
 	.stop	= xt_tgt_seq_stop,
 	.stop	= xt_tgt_seq_stop,

+ 1 - 1
net/netfilter/xt_hashlimit.c

@@ -701,7 +701,7 @@ static int dl_seq_show(struct seq_file *s, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations dl_seq_ops = {
+static const struct seq_operations dl_seq_ops = {
 	.start = dl_seq_start,
 	.start = dl_seq_start,
 	.next  = dl_seq_next,
 	.next  = dl_seq_next,
 	.stop  = dl_seq_stop,
 	.stop  = dl_seq_stop,

+ 1 - 1
net/netlink/af_netlink.c

@@ -1713,7 +1713,7 @@ static int netlink_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations netlink_seq_ops = {
+static const struct seq_operations netlink_seq_ops = {
 	.start  = netlink_seq_start,
 	.start  = netlink_seq_start,
 	.next   = netlink_seq_next,
 	.next   = netlink_seq_next,
 	.stop   = netlink_seq_stop,
 	.stop   = netlink_seq_stop,

+ 1 - 1
net/netrom/af_netrom.c

@@ -1328,7 +1328,7 @@ static int nr_info_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations nr_info_seqops = {
+static const struct seq_operations nr_info_seqops = {
 	.start = nr_info_start,
 	.start = nr_info_start,
 	.next = nr_info_next,
 	.next = nr_info_next,
 	.stop = nr_info_stop,
 	.stop = nr_info_stop,

+ 2 - 2
net/netrom/nr_route.c

@@ -922,7 +922,7 @@ static int nr_node_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations nr_node_seqops = {
+static const struct seq_operations nr_node_seqops = {
 	.start = nr_node_start,
 	.start = nr_node_start,
 	.next = nr_node_next,
 	.next = nr_node_next,
 	.stop = nr_node_stop,
 	.stop = nr_node_stop,
@@ -1006,7 +1006,7 @@ static int nr_neigh_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations nr_neigh_seqops = {
+static const struct seq_operations nr_neigh_seqops = {
 	.start = nr_neigh_start,
 	.start = nr_neigh_start,
 	.next = nr_neigh_next,
 	.next = nr_neigh_next,
 	.stop = nr_neigh_stop,
 	.stop = nr_neigh_stop,

+ 1 - 1
net/packet/af_packet.c

@@ -1928,7 +1928,7 @@ static int packet_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations packet_seq_ops = {
+static const struct seq_operations packet_seq_ops = {
 	.start	= packet_seq_start,
 	.start	= packet_seq_start,
 	.next	= packet_seq_next,
 	.next	= packet_seq_next,
 	.stop	= packet_seq_stop,
 	.stop	= packet_seq_stop,

+ 1 - 1
net/rose/af_rose.c

@@ -1454,7 +1454,7 @@ static int rose_info_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations rose_info_seqops = {
+static const struct seq_operations rose_info_seqops = {
 	.start = rose_info_start,
 	.start = rose_info_start,
 	.next = rose_info_next,
 	.next = rose_info_next,
 	.stop = rose_info_stop,
 	.stop = rose_info_stop,

+ 3 - 3
net/rose/rose_route.c

@@ -1118,7 +1118,7 @@ static int rose_node_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations rose_node_seqops = {
+static const struct seq_operations rose_node_seqops = {
 	.start = rose_node_start,
 	.start = rose_node_start,
 	.next = rose_node_next,
 	.next = rose_node_next,
 	.stop = rose_node_stop,
 	.stop = rose_node_stop,
@@ -1200,7 +1200,7 @@ static int rose_neigh_show(struct seq_file *seq, void *v)
 }
 }
 
 
 
 
-static struct seq_operations rose_neigh_seqops = {
+static const struct seq_operations rose_neigh_seqops = {
 	.start = rose_neigh_start,
 	.start = rose_neigh_start,
 	.next = rose_neigh_next,
 	.next = rose_neigh_next,
 	.stop = rose_neigh_stop,
 	.stop = rose_neigh_stop,
@@ -1284,7 +1284,7 @@ static int rose_route_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations rose_route_seqops = {
+static const struct seq_operations rose_route_seqops = {
 	.start = rose_route_start,
 	.start = rose_route_start,
 	.next = rose_route_next,
 	.next = rose_route_next,
 	.stop = rose_route_stop,
 	.stop = rose_route_stop,

+ 2 - 2
net/rxrpc/ar-proc.c

@@ -86,7 +86,7 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations rxrpc_call_seq_ops = {
+static const struct seq_operations rxrpc_call_seq_ops = {
 	.start  = rxrpc_call_seq_start,
 	.start  = rxrpc_call_seq_start,
 	.next   = rxrpc_call_seq_next,
 	.next   = rxrpc_call_seq_next,
 	.stop   = rxrpc_call_seq_stop,
 	.stop   = rxrpc_call_seq_stop,
@@ -170,7 +170,7 @@ static int rxrpc_connection_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations rxrpc_connection_seq_ops = {
+static const struct seq_operations rxrpc_connection_seq_ops = {
 	.start  = rxrpc_connection_seq_start,
 	.start  = rxrpc_connection_seq_start,
 	.next   = rxrpc_connection_seq_next,
 	.next   = rxrpc_connection_seq_next,
 	.stop   = rxrpc_connection_seq_stop,
 	.stop   = rxrpc_connection_seq_stop,

+ 2 - 2
net/sctp/proc.c

@@ -250,7 +250,7 @@ static int sctp_eps_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations sctp_eps_ops = {
+static const struct seq_operations sctp_eps_ops = {
 	.start = sctp_eps_seq_start,
 	.start = sctp_eps_seq_start,
 	.next  = sctp_eps_seq_next,
 	.next  = sctp_eps_seq_next,
 	.stop  = sctp_eps_seq_stop,
 	.stop  = sctp_eps_seq_stop,
@@ -361,7 +361,7 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations sctp_assoc_ops = {
+static const struct seq_operations sctp_assoc_ops = {
 	.start = sctp_assocs_seq_start,
 	.start = sctp_assocs_seq_start,
 	.next  = sctp_assocs_seq_next,
 	.next  = sctp_assocs_seq_next,
 	.stop  = sctp_assocs_seq_stop,
 	.stop  = sctp_assocs_seq_stop,

+ 1 - 1
net/sunrpc/cache.c

@@ -1210,7 +1210,7 @@ static int c_show(struct seq_file *m, void *p)
 	return cd->cache_show(m, cd, cp);
 	return cd->cache_show(m, cd, cp);
 }
 }
 
 
-static struct seq_operations cache_content_op = {
+static const struct seq_operations cache_content_op = {
 	.start	= c_start,
 	.start	= c_start,
 	.next	= c_next,
 	.next	= c_next,
 	.stop	= c_stop,
 	.stop	= c_stop,

+ 1 - 1
net/unix/af_unix.c

@@ -2048,7 +2048,7 @@ static int unix_seq_show(struct seq_file *seq, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations unix_seq_ops = {
+static const struct seq_operations unix_seq_ops = {
 	.start  = unix_seq_start,
 	.start  = unix_seq_start,
 	.next   = unix_seq_next,
 	.next   = unix_seq_next,
 	.stop   = unix_seq_stop,
 	.stop   = unix_seq_stop,

+ 2 - 2
net/wanrouter/wanproc.c

@@ -164,14 +164,14 @@ static int status_show(struct seq_file *m, void *v)
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations config_op = {
+static const struct seq_operations config_op = {
 	.start	= r_start,
 	.start	= r_start,
 	.next	= r_next,
 	.next	= r_next,
 	.stop	= r_stop,
 	.stop	= r_stop,
 	.show	= config_show,
 	.show	= config_show,
 };
 };
 
 
-static struct seq_operations status_op = {
+static const struct seq_operations status_op = {
 	.start	= r_start,
 	.start	= r_start,
 	.next	= r_next,
 	.next	= r_next,
 	.stop	= r_stop,
 	.stop	= r_stop,

+ 3 - 3
net/x25/x25_proc.c

@@ -234,21 +234,21 @@ out:
 	return 0;
 	return 0;
 }
 }
 
 
-static struct seq_operations x25_seq_route_ops = {
+static const struct seq_operations x25_seq_route_ops = {
 	.start  = x25_seq_route_start,
 	.start  = x25_seq_route_start,
 	.next   = x25_seq_route_next,
 	.next   = x25_seq_route_next,
 	.stop   = x25_seq_route_stop,
 	.stop   = x25_seq_route_stop,
 	.show   = x25_seq_route_show,
 	.show   = x25_seq_route_show,
 };
 };
 
 
-static struct seq_operations x25_seq_socket_ops = {
+static const struct seq_operations x25_seq_socket_ops = {
 	.start  = x25_seq_socket_start,
 	.start  = x25_seq_socket_start,
 	.next   = x25_seq_socket_next,
 	.next   = x25_seq_socket_next,
 	.stop   = x25_seq_socket_stop,
 	.stop   = x25_seq_socket_stop,
 	.show   = x25_seq_socket_show,
 	.show   = x25_seq_socket_show,
 };
 };
 
 
-static struct seq_operations x25_seq_forward_ops = {
+static const struct seq_operations x25_seq_forward_ops = {
 	.start  = x25_seq_forward_start,
 	.start  = x25_seq_forward_start,
 	.next   = x25_seq_forward_next,
 	.next   = x25_seq_forward_next,
 	.stop   = x25_seq_forward_stop,
 	.stop   = x25_seq_forward_stop,