Re: [PATCH] ext4: address a benign compiler warning

From: Theodore Ts'o
Date: Mon Feb 17 2014 - 20:44:12 EST


On Wed, Feb 12, 2014 at 11:12:04PM -0500, Patrick Palka wrote:
> 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@xxxxxxxxxxxx>

Thanks, applied.

- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/