diff options
author | Dan Carpenter <error27@gmail.com> | 2010-11-17 00:13:39 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:55 -0500 |
commit | 0e835087dfe7db19f1f072046f5e116d4ec6662b (patch) | |
tree | 98caa6d12580520f2ead3264008eb0f7503be482 /drivers/media/rc | |
parent | 829ba9fe34246f1f5e813b6bf84171d36e776734 (diff) |
[media] lirc_dev: add some __user annotations
Sparse complains because there are no __user annotations.
drivers/media/rc/lirc_dev.c:156:27: warning:
incorrect type in initializer (incompatible argument 2 (different address spaces))
drivers/media/rc/lirc_dev.c:156:27: expected int ( *read )( ... )
drivers/media/rc/lirc_dev.c:156:27: got int ( extern [toplevel] *<noident> )( ... )
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/lirc_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c index 756656e17bdd..6b9fc74f2e1d 100644 --- a/drivers/media/rc/lirc_dev.c +++ b/drivers/media/rc/lirc_dev.c | |||
@@ -627,7 +627,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
627 | EXPORT_SYMBOL(lirc_dev_fop_ioctl); | 627 | EXPORT_SYMBOL(lirc_dev_fop_ioctl); |
628 | 628 | ||
629 | ssize_t lirc_dev_fop_read(struct file *file, | 629 | ssize_t lirc_dev_fop_read(struct file *file, |
630 | char *buffer, | 630 | char __user *buffer, |
631 | size_t length, | 631 | size_t length, |
632 | loff_t *ppos) | 632 | loff_t *ppos) |
633 | { | 633 | { |
@@ -747,7 +747,7 @@ void *lirc_get_pdata(struct file *file) | |||
747 | EXPORT_SYMBOL(lirc_get_pdata); | 747 | EXPORT_SYMBOL(lirc_get_pdata); |
748 | 748 | ||
749 | 749 | ||
750 | ssize_t lirc_dev_fop_write(struct file *file, const char *buffer, | 750 | ssize_t lirc_dev_fop_write(struct file *file, const char __user *buffer, |
751 | size_t length, loff_t *ppos) | 751 | size_t length, loff_t *ppos) |
752 | { | 752 | { |
753 | struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)]; | 753 | struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)]; |