Commit:     0dbee3a6b006dbe814d002cb18e94bf24a216451
Parent:     7a6c6bcee029a978f866511d6e41dbc7301fde4c
Author:     Arjan van de Ven <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:19 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:19 2007 +0200

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
 kernel/sched_debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 27e82cb..a5e517e 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)
        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,
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to