aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.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/core/dev.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/core/dev.c')
-rw-r--r--net/core/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index f9d2b0f0bd5..8ddc2ab2314 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,