summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-03-12 21:34:29 (GMT)
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 05:25:03 (GMT)
commitf690808e17925fc45217eb22e8670902ecee5c1b (patch)
treeba677dd86988f4c77a728cc7408c21967e59400c /net/core
parent6b2bedc3a659ba228a93afc8e3f008e152abf18a (diff)
downloadlinux-fsl-qoriq-f690808e17925fc45217eb22e8670902ecee5c1b.tar.xz
[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.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
5 files changed, 6 insertions, 6 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index f9d2b0f..8ddc2ab 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)
return 0;
}
-static struct seq_operations dev_seq_ops = {
+static const struct seq_operations dev_seq_ops = {
.start = dev_seq_start,
.next = dev_seq_next,
.stop = dev_seq_stop,
@@ -2196,7 +2196,7 @@ static const struct file_operations dev_seq_fops = {
.release = seq_release,
};
-static struct seq_operations softnet_seq_ops = {
+static const struct seq_operations softnet_seq_ops = {
.start = softnet_seq_start,
.next = softnet_seq_next,
.stop = softnet_seq_stop,
diff --git a/net/core/dev_mcast.c b/net/core/dev_mcast.c
index 56b310c..7d57bf7 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)
return 0;
}
-static struct seq_operations dev_mc_seq_ops = {
+static const struct seq_operations dev_mc_seq_ops = {
.start = dev_mc_seq_start,
.next = dev_mc_seq_next,
.stop = dev_mc_seq_stop,
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index c5653c5..61a4713 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)
return 0;
}
-static struct seq_operations neigh_stat_seq_ops = {
+static const struct seq_operations neigh_stat_seq_ops = {
.start = neigh_stat_seq_start,
.next = neigh_stat_seq_next,
.stop = neigh_stat_seq_stop,
diff --git a/net/core/sock.c b/net/core/sock.c
index f9e6991..73a8018 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)
return 0;
}
-static struct seq_operations proto_seq_ops = {
+static const struct seq_operations proto_seq_ops = {
.start = proto_seq_start,
.next = proto_seq_next,
.stop = proto_seq_stop,
diff --git a/net/core/wireless.c b/net/core/wireless.c
index 21c091d..7c6a5db 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)
return 0;
}
-static struct seq_operations wireless_seq_ops = {
+static const struct seq_operations wireless_seq_ops = {
.start = dev_seq_start,
.next = dev_seq_next,
.stop = dev_seq_stop,