[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>
This commit is contained in:
committed by
David S. Miller
parent
6b2bedc3a6
commit
f690808e17
@@ -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,
|
||||
|
Reference in New Issue
Block a user