diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-11-24 05:06:21 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-26 08:48:03 -0200 |
commit | 87d466e503ab1e071eac4bd89c46eb3cb53246a1 (patch) | |
tree | 627e396ab3661e16144420dd8e219f3552433810 /drivers/staging | |
parent | 75c1ca364d0d5d70ad12c5dac40bbe6598624cab (diff) | |
download | linux-stable-87d466e503ab1e071eac4bd89c46eb3cb53246a1.tar.gz linux-stable-87d466e503ab1e071eac4bd89c46eb3cb53246a1.tar.bz2 linux-stable-87d466e503ab1e071eac4bd89c46eb3cb53246a1.zip |
[media] staging/media: lirc_imon: add a __user annotation
This silences the following Sparse warnings:
lirc_imon.c:404:32: warning: incorrect type in argument 1 (different address spaces)
lirc_imon.c:404:32: expected void const [noderef] <asn:1>*<noident>
lirc_imon.c:404:32: got char const *buf
lirc_imon.c:117:28: warning: incorrect type in initializer (incompatible argument 2 (different address spaces))
lirc_imon.c:117:28: expected long ( *write )( ... )
lirc_imon.c:117:28: got long ( static [toplevel] *<noident> )( ... )
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/lirc/lirc_imon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c index f5308d5929c6..c1654b18610e 100644 --- a/drivers/staging/media/lirc/lirc_imon.c +++ b/drivers/staging/media/lirc/lirc_imon.c @@ -63,7 +63,7 @@ static int display_open(struct inode *inode, struct file *file); static int display_close(struct inode *inode, struct file *file); /* VFD write operation */ -static ssize_t vfd_write(struct file *file, const char *buf, +static ssize_t vfd_write(struct file *file, const char __user *buf, size_t n_bytes, loff_t *pos); /* LIRC driver function prototypes */ @@ -369,7 +369,7 @@ static int send_packet(struct imon_context *context) * than 32 bytes are provided spaces will be appended to * generate a full screen. */ -static ssize_t vfd_write(struct file *file, const char *buf, +static ssize_t vfd_write(struct file *file, const char __user *buf, size_t n_bytes, loff_t *pos) { int i; |