aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_debug.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2007-10-15 11:00:19 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:19 -0400
commit0dbee3a6b006dbe814d002cb18e94bf24a216451 (patch)
treee847b88145ccc2c643ef0fe2244bd1e778b51272 /kernel/sched_debug.c
parent7a6c6bcee029a978f866511d6e41dbc7301fde4c (diff)
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: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_debug.c')
-rw-r--r--kernel/sched_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 27e82cbccaa5..a5e517ec07c3 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -236,7 +236,7 @@ static int sched_debug_open(struct inode *inode, struct file *filp)
236 return single_open(filp, sched_debug_show, NULL); 236 return single_open(filp, sched_debug_show, NULL);
237} 237}
238 238
239static struct file_operations sched_debug_fops = { 239static const struct file_operations sched_debug_fops = {
240 .open = sched_debug_open, 240 .open = sched_debug_open,
241 .read = seq_read, 241 .read = seq_read,
242 .llseek = seq_lseek, 242 .llseek = seq_lseek,