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

Commit f690808e authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

[NET]: make seq_operations const



The seq_file operations stuff can be marked constant to
get it out of dirty cache.

Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b2bedc3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ static int dev_mc_seq_show(struct seq_file *seq, void *v)
	return 0;
}

static struct seq_operations dev_mc_seq_ops = {
static const struct seq_operations dev_mc_seq_ops = {
	.start = dev_mc_seq_start,
	.next  = dev_mc_seq_next,
	.stop  = dev_mc_seq_stop,
+1 −1
Original line number Diff line number Diff line
@@ -2393,7 +2393,7 @@ static int neigh_stat_seq_show(struct seq_file *seq, void *v)
	return 0;
}

static struct seq_operations neigh_stat_seq_ops = {
static const struct seq_operations neigh_stat_seq_ops = {
	.start	= neigh_stat_seq_start,
	.next	= neigh_stat_seq_next,
	.stop	= neigh_stat_seq_stop,
+1 −1
Original line number Diff line number Diff line
@@ -1925,7 +1925,7 @@ static int proto_seq_show(struct seq_file *seq, void *v)
	return 0;
}

static struct seq_operations proto_seq_ops = {
static const struct seq_operations proto_seq_ops = {
	.start  = proto_seq_start,
	.next   = proto_seq_next,
	.stop   = proto_seq_stop,
+1 −1
Original line number Diff line number Diff line
@@ -678,7 +678,7 @@ static int wireless_seq_show(struct seq_file *seq, void *v)
	return 0;
}

static struct seq_operations wireless_seq_ops = {
static const struct seq_operations wireless_seq_ops = {
	.start = dev_seq_start,
	.next  = dev_seq_next,
	.stop  = dev_seq_stop,
Loading