]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: address a benign compiler warning
authorPatrick Palka <patrick@parcs.ath.cx>
Tue, 18 Feb 2014 01:50:59 +0000 (20:50 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Feb 2014 01:50:59 +0000 (20:50 -0500)
commit6314beeb6b9ddf589f4782a45980612f32c73148
treeecea44873e977784d5cbd3003299b3081f4dc5ad
parente856a472ae10bd2e9d3ddfc6c9f9423627c3ebba
ext4: address a benign compiler warning

When !defined(CONFIG_EXT4_DEBUG), mb_debug() should be defined as a
no_printk() statement instead of an empty statement in order to suppress
the following compiler warning:

fs/ext4/mballoc.c: In function ‘ext4_mb_cleanup_pa’:
fs/ext4/mballoc.c:2659:47: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
   mb_debug(1, "mballoc: %u PAs left\n", count);

Signed-off-by: Patrick Palka <patrick@parcs.ath.cx>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.h