Messages in this thread Patch in this message | | | From | Alexey Dobriyan <> | Subject | [PATCH] procfs: Fix sparse warnings | Date | Tue, 15 Feb 2005 14:55:55 +0200 |
| |
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |