]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Make scheduler debug file operations const
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 15 Oct 2007 15:00:19 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:19 +0000 (17:00 +0200)
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>
kernel/sched_debug.c

index 27e82cbccaa5ee0c9c1f6b1249db296e4dd66bd4..a5e517ec07c3dfa5e7b688b40355a9e4a67f13bc 100644 (file)
@@ -236,7 +236,7 @@ static int sched_debug_open(struct inode *inode, struct file *filp)
        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,
        .read           = seq_read,
        .llseek         = seq_lseek,