projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c92826e
)
parisc/led: Fix sparse warnings
author
Helge Deller
<deller@gmx.de>
Sun, 4 Mar 2018 19:58:39 +0000
(20:58 +0100)
committer
Helge Deller
<deller@gmx.de>
Tue, 27 Mar 2018 16:52:21 +0000
(18:52 +0200)
Annotate user buffer and use NULL to avoid sparse warnings.
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/led.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/parisc/led.c
b/drivers/parisc/led.c
index ff1a332d76e4fe73eb418f87b43a2c083d6a01f3..0c6e8b44b4ede70806d2b986c8bba1b216735bf9 100644
(file)
--- 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)