From: Hugo Camboulive Date: Mon, 4 Jan 2016 20:33:50 +0000 (+0000) Subject: staging: wilc1000: add missing __user attribute X-Git-Tag: v4.6-rc1~103^2~1408 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1870394394734c596ec2ef4a3a853a03e128f0e2;p=platform%2Fkernel%2Flinux-exynos.git staging: wilc1000: add missing __user attribute This removes a Sparse warning. Signed-off-by: Hugo Camboulive Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_debugfs.c b/drivers/staging/wilc1000/wilc_debugfs.c index 27c653a..291e6fa 100644 --- a/drivers/staging/wilc1000/wilc_debugfs.c +++ b/drivers/staging/wilc1000/wilc_debugfs.c @@ -89,7 +89,7 @@ static ssize_t wilc_debug_region_read(struct file *file, char __user *userbuf, s return simple_read_from_buffer(userbuf, count, ppos, buf, res); } -static ssize_t wilc_debug_region_write(struct file *filp, const char *buf, size_t count, loff_t *ppos) +static ssize_t wilc_debug_region_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) { char buffer[128] = {}; int flag;