[NET]: Make all initialized struct seq_operations const.
Make all initialized struct seq_operations in net/ const Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3be550f34b
commit
56b3d975bb
@@ -758,7 +758,7 @@ static int br2684_seq_show(struct seq_file *seq, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations br2684_seq_ops = {
|
||||
static const struct seq_operations br2684_seq_ops = {
|
||||
.start = br2684_seq_start,
|
||||
.next = br2684_seq_next,
|
||||
.stop = br2684_seq_stop,
|
||||
|
@@ -928,7 +928,7 @@ static int clip_seq_show(struct seq_file *seq, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations arp_seq_ops = {
|
||||
static const struct seq_operations arp_seq_ops = {
|
||||
.start = clip_seq_start,
|
||||
.next = neigh_seq_next,
|
||||
.stop = neigh_seq_stop,
|
||||
|
@@ -1174,7 +1174,7 @@ static int lec_seq_show(struct seq_file *seq, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations lec_seq_ops = {
|
||||
static const struct seq_operations lec_seq_ops = {
|
||||
.start = lec_seq_start,
|
||||
.next = lec_seq_next,
|
||||
.stop = lec_seq_stop,
|
||||
|
@@ -177,7 +177,7 @@ static int mpc_show(struct seq_file *m, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations mpc_op = {
|
||||
static const struct seq_operations mpc_op = {
|
||||
.start = mpc_start,
|
||||
.next = mpc_next,
|
||||
.stop = mpc_stop,
|
||||
|
@@ -260,7 +260,7 @@ static int atm_dev_seq_show(struct seq_file *seq, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations atm_dev_seq_ops = {
|
||||
static const struct seq_operations atm_dev_seq_ops = {
|
||||
.start = atm_dev_seq_start,
|
||||
.next = atm_dev_seq_next,
|
||||
.stop = atm_dev_seq_stop,
|
||||
@@ -295,7 +295,7 @@ static int pvc_seq_show(struct seq_file *seq, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations pvc_seq_ops = {
|
||||
static const struct seq_operations pvc_seq_ops = {
|
||||
.start = vcc_seq_start,
|
||||
.next = vcc_seq_next,
|
||||
.stop = vcc_seq_stop,
|
||||
@@ -329,7 +329,7 @@ static int vcc_seq_show(struct seq_file *seq, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations vcc_seq_ops = {
|
||||
static const struct seq_operations vcc_seq_ops = {
|
||||
.start = vcc_seq_start,
|
||||
.next = vcc_seq_next,
|
||||
.stop = vcc_seq_stop,
|
||||
@@ -364,7 +364,7 @@ static int svc_seq_show(struct seq_file *seq, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct seq_operations svc_seq_ops = {
|
||||
static const struct seq_operations svc_seq_ops = {
|
||||
.start = vcc_seq_start,
|
||||
.next = vcc_seq_next,
|
||||
.stop = vcc_seq_stop,
|
||||
|
Reference in New Issue
Block a user