diff options
author | 2021-04-11 21:43:13 +0800 | |
---|---|---|
committer | 2021-04-11 08:37:56 -0600 | |
commit | be3bacececd7c4ab233105171d39082858de1baa (patch) | |
tree | 97dcb03f3c7f0a372fb08a25fb31130ef42ca630 /include/linux/lightnvm.h | |
parent | bcache: use NULL instead of using plain integer as pointer (diff) | |
download | wireguard-linux-be3bacececd7c4ab233105171d39082858de1baa.tar.xz wireguard-linux-be3bacececd7c4ab233105171d39082858de1baa.zip |
md: bcache: avoid -Wempty-body warnings
building with 'make W=1' shows a harmless warning for each user of the
EBUG_ON() macro:
drivers/md/bcache/bset.c: In function 'bch_btree_sort_partial':
drivers/md/bcache/util.h:30:55: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
30 | #define EBUG_ON(cond) do { if (cond); } while (0)
| ^
drivers/md/bcache/bset.c:1312:9: note: in expansion of macro 'EBUG_ON'
1312 | EBUG_ON(oldsize >= 0 && bch_count_data(b) != oldsize);
| ^~~~~~~
Reword the macro slightly to avoid the warning.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20210411134316.80274-5-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/lightnvm.h')
0 files changed, 0 insertions, 0 deletions