]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Fix a C compliance issue
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 20 Jun 2018 17:03:33 +0000 (10:03 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:31 +0000 (13:12 +0200)
commit503a26c12da7390d4c4a33c9c2268e1862156b91
tree10d5a3c283fbe35c66fa445410ad18aedc08fbd5
parentd119e88317ae6207d22dd87f7c87eabe57c80621
btrfs: Fix a C compliance issue

The C programming language does not allow to use preprocessor statements
inside macro arguments (pr_info() is defined as a macro). Hence rework
the pr_info() statement in btrfs_print_mod_info() such that it becomes
compliant. This patch allows tools like sparse to analyze the BTRFS
source code.

Fixes: d9195993beb8 ("btrfs: convert printk(KERN_* to use pr_* calls")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c