staging: media: lirc: fixed sparse warnings by adding __user annotations in lirc_serial.c
authorArchana kumari <archanakumari959@gmail.com>
Fri, 1 Nov 2013 08:35:44 +0000 (14:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 19:18:18 +0000 (11:18 -0800)
This patch fixes sparse warning by adding __user annotations in
lirc_serial.c

Signed-off-by: Archana kumari <archanakumari959@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/lirc/lirc_serial.c

index af08e677b60fd31cf94c687d85845838e7682e6a..23043bd70e7eae55aaab28f61b11ef5706491db3 100644 (file)
@@ -961,7 +961,7 @@ static void set_use_dec(void *data)
        spin_unlock_irqrestore(&hardware[type].lock, flags);
 }
 
-static ssize_t lirc_write(struct file *file, const char *buf,
+static ssize_t lirc_write(struct file *file, const char __user *buf,
                         size_t n, loff_t *ppos)
 {
        int i, count;