diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-03-12 17:34:29 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:03 -0400 |
commit | f690808e17925fc45217eb22e8670902ecee5c1b (patch) | |
tree | ba677dd86988f4c77a728cc7408c21967e59400c /net/core | |
parent | 6b2bedc3a659ba228a93afc8e3f008e152abf18a (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/core')
-rw-r--r-- | net/core/dev.c | 4 | ||||
-rw-r--r-- | net/core/dev_mcast.c | 2 | ||||
-rw-r--r-- | net/core/neighbour.c | 2 | ||||
-rw-r--r-- | net/core/sock.c | 2 | ||||
-rw-r--r-- | net/core/wireless.c | 2 |
5 files changed, 6 insertions, 6 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 | ||
2179 | static struct seq_operations dev_seq_ops = { | 2179 | static 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 | ||
2199 | static struct seq_operations softnet_seq_ops = { | 2199 | static 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 | ||
267 | static struct seq_operations dev_mc_seq_ops = { | 267 | static 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 | ||
2396 | static struct seq_operations neigh_stat_seq_ops = { | 2396 | static 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 | ||
1928 | static struct seq_operations proto_seq_ops = { | 1928 | static 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 | ||
681 | static struct seq_operations wireless_seq_ops = { | 681 | static 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, |