WSL2-Linux-Kernel/fs/ext2
Randy Dunlap 44a52022e7 ext2: fix empty body warnings when -Wextra is used
When EXT2_ATTR_DEBUG is not defined, modify the 2 debug macros
to use the no_printk() macro instead of <nothing>.
This fixes gcc warnings when -Wextra is used:

../fs/ext2/xattr.c:252:42: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../fs/ext2/xattr.c:258:42: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../fs/ext2/xattr.c:330:42: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../fs/ext2/xattr.c:872:45: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]

I have verified that the only object code change (with gcc 7.5.0) is
the reversal of some instructions from 'cmp a,b' to 'cmp b,a'.

Link: https://lore.kernel.org/r/e18a7395-61fb-2093-18e8-ed4f8cf56248@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jan Kara <jack@suse.com>
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
2020-03-23 13:01:37 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
acl.c
acl.h
balloc.c ext2: fix improper function comment 2019-11-07 12:35:27 +01:00
dir.c
ext2.h ext2: introduce new helper ext2_group_last_block_no() 2019-11-06 16:25:12 +01:00
file.c
ialloc.c ext2: add missing brelse() in ext2_new_inode() 2019-05-30 13:35:32 +02:00
inode.c dax: Pass dax_dev instead of bdev to dax_writeback_mapping_range() 2020-01-03 11:13:12 -08:00
ioctl.c ext2: return error when fail to allocating memory in ioctl 2019-10-24 09:24:40 +02:00
namei.c
super.c ext2: Adjust indentation in ext2_fill_super 2020-01-06 10:09:35 +01:00
symlink.c
xattr.c ext2: fix empty body warnings when -Wextra is used 2020-03-23 13:01:37 +01:00
xattr.h ext2: xattr.h: Replace zero-length array with flexible-array member 2020-03-16 15:56:50 +01:00
xattr_security.c
xattr_trusted.c
xattr_user.c