diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2020-02-04 04:34:52 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-02-04 06:05:24 +0300 |
commit | 046755a28f9ddc95fd153e76e62d4b3205ac79cd (patch) | |
tree | 8e2c1b89271bd0587ab170fa9f3965151b0c6e7d /drivers/acpi/acpica/exoparg2.c | |
parent | ca0a95a6ac0c444d782abdcb44fd633a5c320d61 (diff) | |
download | linux-046755a28f9ddc95fd153e76e62d4b3205ac79cd.tar.xz |
drivers/block/null_blk_main.c: fix uninitialized var warnings
With gcc-7.2, many instances of
drivers/block/null_blk_main.c: In function ‘nullb_device_zone_nr_conv_store’:
drivers/block/null_blk_main.c:291:12: warning: ‘new_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]
dev->NAME = new_value; \
^
drivers/block/null_blk_main.c:279:7: note: ‘new_value’ was declared here
TYPE new_value; \
^
Presumably notabug, so use uninitialized_var() to suppress them.
Cc: Shaohua Li <shli@fb.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/acpi/acpica/exoparg2.c')
0 files changed, 0 insertions, 0 deletions