From: Archana kumari Date: Fri, 1 Nov 2013 08:35:44 +0000 (+0530) Subject: staging: media: lirc: fixed sparse warnings by adding __user annotations in lirc_serial.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=05323e78161b4396c31e7ed8d84670461805fb97;p=linux-beck.git staging: media: lirc: fixed sparse warnings by adding __user annotations in lirc_serial.c This patch fixes sparse warning by adding __user annotations in lirc_serial.c Signed-off-by: Archana kumari Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/lirc/lirc_serial.c b/drivers/staging/media/lirc/lirc_serial.c index af08e677b60f..23043bd70e7e 100644 --- a/drivers/staging/media/lirc/lirc_serial.c +++ b/drivers/staging/media/lirc/lirc_serial.c @@ -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;