mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[NET]: Make all initialized struct seq_operations const.
Make all initialized struct seq_operations in net/ const Signed-off-by: Philippe De Muyter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3be550f34b
commit
56b3d975bb
56 changed files with 76 additions and 76 deletions
|
|
@ -2304,7 +2304,7 @@ static int dn_socket_seq_show(struct seq_file *seq, void *v)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations dn_socket_seq_ops = {
|
||||
static const struct seq_operations dn_socket_seq_ops = {
|
||||
.start = dn_socket_seq_start,
|
||||
.next = dn_socket_seq_next,
|
||||
.stop = dn_socket_seq_stop,
|
||||
|
|
|
|||
|
|
@ -1416,7 +1416,7 @@ static int dn_dev_seq_show(struct seq_file *seq, void *v)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations dn_dev_seq_ops = {
|
||||
static const struct seq_operations dn_dev_seq_ops = {
|
||||
.start = dn_dev_seq_start,
|
||||
.next = dn_dev_seq_next,
|
||||
.stop = dn_dev_seq_stop,
|
||||
|
|
|
|||
|
|
@ -569,7 +569,7 @@ static void *dn_neigh_seq_start(struct seq_file *seq, loff_t *pos)
|
|||
NEIGH_SEQ_NEIGH_ONLY);
|
||||
}
|
||||
|
||||
static struct seq_operations dn_neigh_seq_ops = {
|
||||
static const struct seq_operations dn_neigh_seq_ops = {
|
||||
.start = dn_neigh_seq_start,
|
||||
.next = neigh_seq_next,
|
||||
.stop = neigh_seq_stop,
|
||||
|
|
|
|||
|
|
@ -1726,7 +1726,7 @@ static int dn_rt_cache_seq_show(struct seq_file *seq, void *v)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations dn_rt_cache_seq_ops = {
|
||||
static const struct seq_operations dn_rt_cache_seq_ops = {
|
||||
.start = dn_rt_cache_seq_start,
|
||||
.next = dn_rt_cache_seq_next,
|
||||
.stop = dn_rt_cache_seq_stop,
|
||||
|
|
|
|||
Loading…
Reference in a new issue