aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-03-12 17:34:29 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:03 -0400
commitf690808e17925fc45217eb22e8670902ecee5c1b (patch)
treeba677dd86988f4c77a728cc7408c21967e59400c /net
parent6b2bedc3a659ba228a93afc8e3f008e152abf18a (diff)
[NET]: make seq_operations const
The seq_file operations stuff can be marked constant to get it out of dirty cache. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c4
-rw-r--r--net/core/dev_mcast.c2
-rw-r--r--net/core/neighbour.c2
-rw-r--r--net/core/sock.c2
-rw-r--r--net/core/wireless.c2
-rw-r--r--net/ipv4/arp.c2
-rw-r--r--net/ipv4/fib_hash.c2
-rw-r--r--net/ipv4/fib_trie.c4
-rw-r--r--net/ipv4/igmp.c4
-rw-r--r--net/ipv4/ipmr.c4
-rw-r--r--net/ipv4/raw.c2
-rw-r--r--net/ipv4/route.c4
12 files changed, 17 insertions, 17 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index f9d2b0f0bd58..8ddc2ab23142 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2176,7 +2176,7 @@ static int softnet_seq_show(struct seq_file *seq, void *v)
2176 return 0; 2176 return 0;
2177} 2177}
2178 2178
2179static struct seq_operations dev_seq_ops = { 2179static const struct seq_operations dev_seq_ops = {
2180 .start = dev_seq_start, 2180 .start = dev_seq_start,
2181 .next = dev_seq_next, 2181 .next = dev_seq_next,
2182 .stop = dev_seq_stop, 2182 .stop = dev_seq_stop,
@@ -2196,7 +2196,7 @@ static const struct file_operations dev_seq_fops = {
2196 .release = seq_release, 2196 .release = seq_release,
2197}; 2197};
2198 2198
2199static struct seq_operations softnet_seq_ops = { 2199static const struct seq_operations softnet_seq_ops = {
2200 .start = softnet_seq_start, 2200 .start = softnet_seq_start,
2201 .next = softnet_seq_next, 2201 .next = softnet_seq_next,
2202 .stop = softnet_seq_stop, 2202 .stop = softnet_seq_stop,
diff --git a/net/core/dev_mcast.c b/net/core/dev_mcast.c
index 56b310c0c860..7d57bf77f3a3 100644
--- a/net/core/dev_mcast.c
+++ b/net/core/dev_mcast.c
@@ -264,7 +264,7 @@ static int dev_mc_seq_show(struct seq_file *seq, void *v)
264 return 0; 264 return 0;
265} 265}
266 266
267static struct seq_operations dev_mc_seq_ops = { 267static const struct seq_operations dev_mc_seq_ops = {
268 .start = dev_mc_seq_start, 268 .start = dev_mc_seq_start,
269 .next = dev_mc_seq_next, 269 .next = dev_mc_seq_next,
270 .stop = dev_mc_seq_stop, 270 .stop = dev_mc_seq_stop,
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index c5653c512b43..61a4713a5df3 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -2393,7 +2393,7 @@ static int neigh_stat_seq_show(struct seq_file *seq, void *v)
2393 return 0; 2393 return 0;
2394} 2394}
2395 2395
2396static struct seq_operations neigh_stat_seq_ops = { 2396static const struct seq_operations neigh_stat_seq_ops = {
2397 .start = neigh_stat_seq_start, 2397 .start = neigh_stat_seq_start,
2398 .next = neigh_stat_seq_next, 2398 .next = neigh_stat_seq_next,
2399 .stop = neigh_stat_seq_stop, 2399 .stop = neigh_stat_seq_stop,
diff --git a/net/core/sock.c b/net/core/sock.c
index f9e6991d3729..73a8018029a8 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1925,7 +1925,7 @@ static int proto_seq_show(struct seq_file *seq, void *v)
1925 return 0; 1925 return 0;
1926} 1926}
1927 1927
1928static struct seq_operations proto_seq_ops = { 1928static const struct seq_operations proto_seq_ops = {
1929 .start = proto_seq_start, 1929 .start = proto_seq_start,
1930 .next = proto_seq_next, 1930 .next = proto_seq_next,
1931 .stop = proto_seq_stop, 1931 .stop = proto_seq_stop,
diff --git a/net/core/wireless.c b/net/core/wireless.c
index 21c091dd39ee..7c6a5db544f1 100644
--- a/net/core/wireless.c
+++ b/net/core/wireless.c
@@ -678,7 +678,7 @@ static int wireless_seq_show(struct seq_file *seq, void *v)
678 return 0; 678 return 0;
679} 679}
680 680
681static struct seq_operations wireless_seq_ops = { 681static const struct seq_operations wireless_seq_ops = {
682 .start = dev_seq_start, 682 .start = dev_seq_start,
683 .next = dev_seq_next, 683 .next = dev_seq_next,
684 .stop = dev_seq_stop, 684 .stop = dev_seq_stop,
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 8c533ceb9709..fd36eebbd90a 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -1360,7 +1360,7 @@ static void *arp_seq_start(struct seq_file *seq, loff_t *pos)
1360 1360
1361/* ------------------------------------------------------------------------ */ 1361/* ------------------------------------------------------------------------ */
1362 1362
1363static struct seq_operations arp_seq_ops = { 1363static const struct seq_operations arp_seq_ops = {
1364 .start = arp_seq_start, 1364 .start = arp_seq_start,
1365 .next = neigh_seq_next, 1365 .next = neigh_seq_next,
1366 .stop = neigh_seq_stop, 1366 .stop = neigh_seq_stop,
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c
index a4949f957ab5..9cfecf1215c9 100644
--- a/net/ipv4/fib_hash.c
+++ b/net/ipv4/fib_hash.c
@@ -1027,7 +1027,7 @@ out:
1027 return 0; 1027 return 0;
1028} 1028}
1029 1029
1030static struct seq_operations fib_seq_ops = { 1030static const struct seq_operations fib_seq_ops = {
1031 .start = fib_seq_start, 1031 .start = fib_seq_start,
1032 .next = fib_seq_next, 1032 .next = fib_seq_next,
1033 .stop = fib_seq_stop, 1033 .stop = fib_seq_stop,
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index c331c433acf2..e2b39fdd6a04 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -2339,7 +2339,7 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v)
2339 return 0; 2339 return 0;
2340} 2340}
2341 2341
2342static struct seq_operations fib_trie_seq_ops = { 2342static const struct seq_operations fib_trie_seq_ops = {
2343 .start = fib_trie_seq_start, 2343 .start = fib_trie_seq_start,
2344 .next = fib_trie_seq_next, 2344 .next = fib_trie_seq_next,
2345 .stop = fib_trie_seq_stop, 2345 .stop = fib_trie_seq_stop,
@@ -2460,7 +2460,7 @@ static int fib_route_seq_show(struct seq_file *seq, void *v)
2460 return 0; 2460 return 0;
2461} 2461}
2462 2462
2463static struct seq_operations fib_route_seq_ops = { 2463static const struct seq_operations fib_route_seq_ops = {
2464 .start = fib_trie_seq_start, 2464 .start = fib_trie_seq_start,
2465 .next = fib_trie_seq_next, 2465 .next = fib_trie_seq_next,
2466 .stop = fib_trie_seq_stop, 2466 .stop = fib_trie_seq_stop,
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index d17ad09a83e0..0687a7235a6c 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -2401,7 +2401,7 @@ static int igmp_mc_seq_show(struct seq_file *seq, void *v)
2401 return 0; 2401 return 0;
2402} 2402}
2403 2403
2404static struct seq_operations igmp_mc_seq_ops = { 2404static const struct seq_operations igmp_mc_seq_ops = {
2405 .start = igmp_mc_seq_start, 2405 .start = igmp_mc_seq_start,
2406 .next = igmp_mc_seq_next, 2406 .next = igmp_mc_seq_next,
2407 .stop = igmp_mc_seq_stop, 2407 .stop = igmp_mc_seq_stop,
@@ -2575,7 +2575,7 @@ static int igmp_mcf_seq_show(struct seq_file *seq, void *v)
2575 return 0; 2575 return 0;
2576} 2576}
2577 2577
2578static struct seq_operations igmp_mcf_seq_ops = { 2578static const struct seq_operations igmp_mcf_seq_ops = {
2579 .start = igmp_mcf_seq_start, 2579 .start = igmp_mcf_seq_start,
2580 .next = igmp_mcf_seq_next, 2580 .next = igmp_mcf_seq_next,
2581 .stop = igmp_mcf_seq_stop, 2581 .stop = igmp_mcf_seq_stop,
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 465459d59b21..8c4de92c1a99 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -1683,7 +1683,7 @@ static int ipmr_vif_seq_show(struct seq_file *seq, void *v)
1683 return 0; 1683 return 0;
1684} 1684}
1685 1685
1686static struct seq_operations ipmr_vif_seq_ops = { 1686static const struct seq_operations ipmr_vif_seq_ops = {
1687 .start = ipmr_vif_seq_start, 1687 .start = ipmr_vif_seq_start,
1688 .next = ipmr_vif_seq_next, 1688 .next = ipmr_vif_seq_next,
1689 .stop = ipmr_vif_seq_stop, 1689 .stop = ipmr_vif_seq_stop,
@@ -1846,7 +1846,7 @@ static int ipmr_mfc_seq_show(struct seq_file *seq, void *v)
1846 return 0; 1846 return 0;
1847} 1847}
1848 1848
1849static struct seq_operations ipmr_mfc_seq_ops = { 1849static const struct seq_operations ipmr_mfc_seq_ops = {
1850 .start = ipmr_mfc_seq_start, 1850 .start = ipmr_mfc_seq_start,
1851 .next = ipmr_mfc_seq_next, 1851 .next = ipmr_mfc_seq_next,
1852 .stop = ipmr_mfc_seq_stop, 1852 .stop = ipmr_mfc_seq_stop,
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index a3d02fdfc066..c3757bb270ca 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -889,7 +889,7 @@ static int raw_seq_show(struct seq_file *seq, void *v)
889 return 0; 889 return 0;
890} 890}
891 891
892static struct seq_operations raw_seq_ops = { 892static const struct seq_operations raw_seq_ops = {
893 .start = raw_seq_start, 893 .start = raw_seq_start,
894 .next = raw_seq_next, 894 .next = raw_seq_next,
895 .stop = raw_seq_stop, 895 .stop = raw_seq_stop,
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index d29861844903..e50ad7dbbde8 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -364,7 +364,7 @@ static int rt_cache_seq_show(struct seq_file *seq, void *v)
364 return 0; 364 return 0;
365} 365}
366 366
367static struct seq_operations rt_cache_seq_ops = { 367static const struct seq_operations rt_cache_seq_ops = {
368 .start = rt_cache_seq_start, 368 .start = rt_cache_seq_start,
369 .next = rt_cache_seq_next, 369 .next = rt_cache_seq_next,
370 .stop = rt_cache_seq_stop, 370 .stop = rt_cache_seq_stop,
@@ -470,7 +470,7 @@ static int rt_cpu_seq_show(struct seq_file *seq, void *v)
470 return 0; 470 return 0;
471} 471}
472 472
473static struct seq_operations rt_cpu_seq_ops = { 473static const struct seq_operations rt_cpu_seq_ops = {
474 .start = rt_cpu_seq_start, 474 .start = rt_cpu_seq_start,
475 .next = rt_cpu_seq_next, 475 .next = rt_cpu_seq_next,
476 .stop = rt_cpu_seq_stop, 476 .stop = rt_cpu_seq_stop,