Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56b3d975 authored by Philippe De Muyter's avatar Philippe De Muyter Committed by David S. Miller
Browse files

[NET]: Make all initialized struct seq_operations const.



Make all initialized struct seq_operations in net/ const

Signed-off-by: default avatarPhilippe De Muyter <phdm@macqel.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3be550f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -567,7 +567,7 @@ static int rif_seq_show(struct seq_file *seq, void *v)
}


static struct seq_operations rif_seq_ops = {
static const struct seq_operations rif_seq_ops = {
	.start = rif_seq_start,
	.next  = rif_seq_next,
	.stop  = rif_seq_stop,
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ static const char name_conf[] = "config";
 *	Generic /proc/net/vlan/<file> file and inode operations
 */

static struct seq_operations vlan_seq_ops = {
static const struct seq_operations vlan_seq_ops = {
	.start = vlan_seq_start,
	.next = vlan_seq_next,
	.stop = vlan_seq_stop,
+1 −1
Original line number Diff line number Diff line
@@ -1024,7 +1024,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v)
	return 0;
}

static struct seq_operations aarp_seq_ops = {
static const struct seq_operations aarp_seq_ops = {
	.start  = aarp_seq_start,
	.next   = aarp_seq_next,
	.stop   = aarp_seq_stop,
+3 −3
Original line number Diff line number Diff line
@@ -204,21 +204,21 @@ static int atalk_seq_socket_show(struct seq_file *seq, void *v)
	return 0;
}

static struct seq_operations atalk_seq_interface_ops = {
static const struct seq_operations atalk_seq_interface_ops = {
	.start  = atalk_seq_interface_start,
	.next   = atalk_seq_interface_next,
	.stop   = atalk_seq_interface_stop,
	.show   = atalk_seq_interface_show,
};

static struct seq_operations atalk_seq_route_ops = {
static const struct seq_operations atalk_seq_route_ops = {
	.start  = atalk_seq_route_start,
	.next   = atalk_seq_route_next,
	.stop   = atalk_seq_route_stop,
	.show   = atalk_seq_route_show,
};

static struct seq_operations atalk_seq_socket_ops = {
static const struct seq_operations atalk_seq_socket_ops = {
	.start  = atalk_seq_socket_start,
	.next   = atalk_seq_socket_next,
	.stop   = atalk_seq_socket_stop,
+1 −1
Original line number Diff line number Diff line
@@ -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,
Loading