summaryrefslogtreecommitdiffstats
path: root/virt/lib
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-03-22 12:34:29 +0100
committerRichard Weinberger <richard@nod.at>2021-04-15 22:01:11 +0200
commit81af4b7b53d3f2931db907c90822d0b89f0166b7 (patch)
tree11a5404331afe211141c1084fc9122b863b991c6 /virt/lib
parent960b9a8a7676b9054d8b46a2c7db52a0c8766b56 (diff)
downloadlinux-stable-81af4b7b53d3f2931db907c90822d0b89f0166b7.tar.gz
linux-stable-81af4b7b53d3f2931db907c90822d0b89f0166b7.tar.bz2
linux-stable-81af4b7b53d3f2931db907c90822d0b89f0166b7.zip
jffs2: avoid Wempty-body warnings
Building with W=1 shows a few warnings for empty macros: fs/jffs2/scan.c: In function 'jffs2_scan_xattr_node': fs/jffs2/scan.c:378:66: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] 378 | jffs2_sum_add_xattr_mem(s, rx, ofs - jeb->offset); | ^ fs/jffs2/scan.c: In function 'jffs2_scan_xref_node': fs/jffs2/scan.c:434:65: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] 434 | jffs2_sum_add_xref_mem(s, rr, ofs - jeb->offset); | ^ fs/jffs2/scan.c: In function 'jffs2_scan_eraseblock': fs/jffs2/scan.c:893:88: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] 893 | jffs2_sum_add_padding_mem(s, je32_to_cpu(node->totlen)); | ^ Change all these macros to 'do { } while (0)' statements to avoid the warnings and make the code a little more robust. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'virt/lib')
0 files changed, 0 insertions, 0 deletions