diff options
| author | Randy Dunlap <[email protected]> | 2020-03-23 02:45:41 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2020-03-23 12:01:37 +0000 |
| commit | 44a52022e7f15cbaab957df1c14f7a4f527ef7cf (patch) | |
| tree | 07f2c5036bc942db2f6ec01611a88740e76b83ad /drivers/pci/controller/pci-host-generic.c | |
| parent | ext2: fix debug reference to ext2_xattr_cache (diff) | |
| download | kernel-44a52022e7f15cbaab957df1c14f7a4f527ef7cf.tar.gz kernel-44a52022e7f15cbaab957df1c14f7a4f527ef7cf.zip | |
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/[email protected]
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
