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

Commit 0dbee3a6 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Ingo Molnar
Browse files

Make scheduler debug file operations const



In general, struct file_operations are const in the kernel, to not have
false cacheline sharing and to catch bugs at compiletime with accidental
writes to them. The new scheduler code introduces a new non-const one;
fix this up.

Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7a6c6bce
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -236,7 +236,7 @@ static int sched_debug_open(struct inode *inode, struct file *filp)
	return single_open(filp, sched_debug_show, NULL);
	return single_open(filp, sched_debug_show, NULL);
}
}


static struct file_operations sched_debug_fops = {
static const struct file_operations sched_debug_fops = {
	.open		= sched_debug_open,
	.open		= sched_debug_open,
	.read		= seq_read,
	.read		= seq_read,
	.llseek		= seq_lseek,
	.llseek		= seq_lseek,