[PATCH] procfs: Fix sparse warnings

From: Alexey Dobriyan
Date: Tue Feb 15 2005 - 06:57:20 EST


Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxx>

Index: linux-warnings/fs/proc/base.c
===================================================================
--- linux-warnings/fs/proc/base.c (revision 25)
+++ linux-warnings/fs/proc/base.c (revision 29)
@@ -689,7 +689,7 @@
.open = mem_open,
};

-static ssize_t oom_adjust_read(struct file *file, char *buf,
+static ssize_t oom_adjust_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{
struct task_struct *task = proc_task(file->f_dentry->d_inode);
@@ -709,7 +709,7 @@
return count;
}

-static ssize_t oom_adjust_write(struct file *file, const char *buf,
+static ssize_t oom_adjust_write(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)
{
struct task_struct *task = proc_task(file->f_dentry->d_inode);
@@ -735,8 +735,8 @@
}

static struct file_operations proc_oom_adjust_operations = {
- read: oom_adjust_read,
- write: oom_adjust_write,
+ .read = oom_adjust_read,
+ .write = oom_adjust_write,
};

static struct inode_operations proc_mem_inode_operations = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/