fs/proc/base.c: fix sparse warnings
Subsystems (2)
PATCH 1/1 fs/proc/base.c: fix sparse warnings
Signed-off-by Alexey Dobriyan <[email protected]>
fs/proc/base.c +4 -4
@@ -702,7 +702,7 @@ static struct file_operations proc_mem_o .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);
@@ -722,7 +722,7 @@ static ssize_t oom_adjust_read(struct fireturn 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);
@@ -748,8 +748,8 @@ static ssize_t oom_adjust_write(struct f }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 = {
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors