From: Bastien Armand Date: Fri, 18 Apr 2014 16:10:08 +0000 (+0200) Subject: staging: panel: fix sparse warnings in keypad_read X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cce75f412fa39c71debfbdb1aa20673c4c04396e;p=linux-beck.git staging: panel: fix sparse warnings in keypad_read This patch fixes two sparse warnings related to keypad_read : warning: incorrect type in argument 1 (different address spaces) warning: incorrect type in initializer (incompatible argument 2 (different address spaces)) Signed-off-by: Bastien Armand Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index e2e3c6bc3a6c..a5087cbfdef4 100644 --- a/drivers/staging/panel/panel.c +++ b/drivers/staging/panel/panel.c @@ -1584,11 +1584,11 @@ static void lcd_init(void) */ static ssize_t keypad_read(struct file *file, - char *buf, size_t count, loff_t *ppos) + char __user *buf, size_t count, loff_t *ppos) { unsigned i = *ppos; - char *tmp = buf; + char __user *tmp = buf; if (keypad_buflen == 0) { if (file->f_flags & O_NONBLOCK)