提交 9b52523a 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] mbcs trivial user annotations

Signed-off-by: NAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 3c51f196
...@@ -394,7 +394,7 @@ int mbcs_open(struct inode *ip, struct file *fp) ...@@ -394,7 +394,7 @@ int mbcs_open(struct inode *ip, struct file *fp)
return -ENODEV; return -ENODEV;
} }
ssize_t mbcs_sram_read(struct file * fp, char *buf, size_t len, loff_t * off) ssize_t mbcs_sram_read(struct file * fp, char __user *buf, size_t len, loff_t * off)
{ {
struct cx_dev *cx_dev = fp->private_data; struct cx_dev *cx_dev = fp->private_data;
struct mbcs_soft *soft = cx_dev->soft; struct mbcs_soft *soft = cx_dev->soft;
...@@ -419,7 +419,7 @@ ssize_t mbcs_sram_read(struct file * fp, char *buf, size_t len, loff_t * off) ...@@ -419,7 +419,7 @@ ssize_t mbcs_sram_read(struct file * fp, char *buf, size_t len, loff_t * off)
} }
ssize_t ssize_t
mbcs_sram_write(struct file * fp, const char *buf, size_t len, loff_t * off) mbcs_sram_write(struct file * fp, const char __user *buf, size_t len, loff_t * off)
{ {
struct cx_dev *cx_dev = fp->private_data; struct cx_dev *cx_dev = fp->private_data;
struct mbcs_soft *soft = cx_dev->soft; struct mbcs_soft *soft = cx_dev->soft;
......
...@@ -543,9 +543,9 @@ struct mbcs_soft { ...@@ -543,9 +543,9 @@ struct mbcs_soft {
}; };
extern int mbcs_open(struct inode *ip, struct file *fp); extern int mbcs_open(struct inode *ip, struct file *fp);
extern ssize_t mbcs_sram_read(struct file *fp, char *buf, size_t len, extern ssize_t mbcs_sram_read(struct file *fp, char __user *buf, size_t len,
loff_t * off); loff_t * off);
extern ssize_t mbcs_sram_write(struct file *fp, const char *buf, size_t len, extern ssize_t mbcs_sram_write(struct file *fp, const char __user *buf, size_t len,
loff_t * off); loff_t * off);
extern loff_t mbcs_sram_llseek(struct file *filp, loff_t off, int whence); extern loff_t mbcs_sram_llseek(struct file *filp, loff_t off, int whence);
extern int mbcs_gscr_mmap(struct file *fp, struct vm_area_struct *vma); extern int mbcs_gscr_mmap(struct file *fp, struct vm_area_struct *vma);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册