net: seq_operations should be const
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0fc0b732ea
commit
98147d527a
@@ -204,7 +204,7 @@ static int ip6mr_vif_seq_show(struct seq_file *seq, void *v)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct seq_operations ip6mr_vif_seq_ops = {
|
static const struct seq_operations ip6mr_vif_seq_ops = {
|
||||||
.start = ip6mr_vif_seq_start,
|
.start = ip6mr_vif_seq_start,
|
||||||
.next = ip6mr_vif_seq_next,
|
.next = ip6mr_vif_seq_next,
|
||||||
.stop = ip6mr_vif_seq_stop,
|
.stop = ip6mr_vif_seq_stop,
|
||||||
|
@@ -3705,7 +3705,7 @@ static void pfkey_seq_stop(struct seq_file *f, void *v)
|
|||||||
read_unlock(&pfkey_table_lock);
|
read_unlock(&pfkey_table_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct seq_operations pfkey_seq_ops = {
|
static const struct seq_operations pfkey_seq_ops = {
|
||||||
.start = pfkey_seq_start,
|
.start = pfkey_seq_start,
|
||||||
.next = pfkey_seq_next,
|
.next = pfkey_seq_next,
|
||||||
.stop = pfkey_seq_stop,
|
.stop = pfkey_seq_stop,
|
||||||
|
Reference in New Issue
Block a user