projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3bbd3f
)
rbd: silence bogus -Wmaybe-uninitialized warning
author
Ilya Dryomov
<idryomov@gmail.com>
Tue, 6 Sep 2016 09:15:48 +0000
(11:15 +0200)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 12 Dec 2016 22:54:26 +0000
(23:54 +0100)
drivers/block/rbd.c: In function ‘rbd_watch_cb’:
drivers/block/rbd.c:3690:5: error: ‘struct_v’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
drivers/block/rbd.c:3759:5: note: ‘struct_v’ was declared here
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index 7b274ff4632c6944e32b95d605ee9aa9769f7082..36d2b9f4e83654637925d57fce5a4fc8cd0f009e 100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-3756,7
+3756,7
@@
static void rbd_watch_cb(void *arg, u64 notify_id, u64 cookie,
struct rbd_device *rbd_dev = arg;
void *p = data;
void *const end = p + data_len;
- u8 struct_v;
+ u8 struct_v
= 0
;
u32 len;
u32 notify_op;
int ret;