diff options
author | Alexander Viro <viro@www.linux.org.uk> | 2005-04-03 18:06:56 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-03 18:06:56 -0700 |
commit | 6bcca14e4f981a2572de572911f0f94ee87078ff (patch) | |
tree | 6a4c021e46bf6a73503285f89be6de17ea2d8ff4 | |
parent | b32adaf212f545a028c39a464fe0e3377a2f9b7c (diff) |
[PATCH] cpuset.c __user annotations
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
-rw-r--r-- | kernel/cpuset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index a6584d9099d32..69792bbe22817 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c @@ -345,7 +345,7 @@ struct cftype { int (*open) (struct inode *inode, struct file *file); ssize_t (*read) (struct file *file, char __user *buf, size_t nbytes, loff_t *ppos); - int (*write) (struct file *file, const char *buf, size_t nbytes, + int (*write) (struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos); int (*release) (struct inode *inode, struct file *file); }; @@ -740,7 +740,7 @@ typedef enum { FILE_TASKLIST, } cpuset_filetype_t; -static ssize_t cpuset_common_file_write(struct file *file, const char *userbuf, +static ssize_t cpuset_common_file_write(struct file *file, const char __user *userbuf, size_t nbytes, loff_t *unused_ppos) { struct cpuset *cs = __d_cs(file->f_dentry->d_parent); @@ -803,7 +803,7 @@ out1: return retval; } -static ssize_t cpuset_file_write(struct file *file, const char *buf, +static ssize_t cpuset_file_write(struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos) { ssize_t retval = 0; @@ -903,7 +903,7 @@ out: return retval; } -static ssize_t cpuset_file_read(struct file *file, char *buf, size_t nbytes, +static ssize_t cpuset_file_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) { ssize_t retval = 0; |