aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_trie.c
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/ipv4/fib_trie.c
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/ipv4/fib_trie.c')
-rw-r--r--net/ipv4/fib_trie.c4
1 files changed, 2 insertions, 2 deletions
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,