summaryrefslogtreecommitdiffstats
path: root/drivers/parisc
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2018-03-04 20:58:39 +0100
committerHelge Deller <deller@gmx.de>2018-03-27 18:52:21 +0200
commit2d76978d53afb93de46ae54f722e0e24e9b2a39b (patch)
treeeded61f6ca9e6506892fdbb3ff116bb34445c9d4 /drivers/parisc
parentc92826ef5a23422d36fb3dbe685e9215119eadc7 (diff)
downloadop-kernel-dev-2d76978d53afb93de46ae54f722e0e24e9b2a39b.zip
op-kernel-dev-2d76978d53afb93de46ae54f722e0e24e9b2a39b.tar.gz
parisc/led: Fix sparse warnings
Annotate user buffer and use NULL to avoid sparse warnings. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parisc')
-rw-r--r--drivers/parisc/led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c
index ff1a332..0c6e8b4 100644
--- a/drivers/parisc/led.c
+++ b/drivers/parisc/led.c
@@ -176,7 +176,7 @@ static int led_proc_open(struct inode *inode, struct file *file)
}
-static ssize_t led_proc_write(struct file *file, const char *buf,
+static ssize_t led_proc_write(struct file *file, const char __user *buf,
size_t count, loff_t *pos)
{
void *data = PDE_DATA(file_inode(file));
@@ -250,7 +250,7 @@ static int __init led_create_procfs(void)
if (led_type == -1) return -1;
- proc_pdc_root = proc_mkdir("pdc", 0);
+ proc_pdc_root = proc_mkdir("pdc", NULL);
if (!proc_pdc_root) return -1;
if (!lcd_no_led_support)
OpenPOWER on IntegriCloud