Browse Source

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 <archanakumari959@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Archana kumari 12 years ago
parent
commit
05323e7816
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/media/lirc/lirc_serial.c

+ 1 - 1
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);
 	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)
 			 size_t n, loff_t *ppos)
 {
 {
 	int i, count;
 	int i, count;