]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix btrfs_no_printk stub helper
authorArnd Bergmann <arnd@arndb.de>
Fri, 23 Sep 2016 16:05:21 +0000 (18:05 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 17:37:06 +0000 (19:37 +0200)
commitf0ca3d230115854c888cb50ac5e5b415c53e8334
tree95fb20f6f43153bfd83784cb7a9b2e73e4b9bfb2
parenteac6df1b51dadeedd1017aef31b9f523f35b29c0
btrfs: fix btrfs_no_printk stub helper

The addition of btrfs_no_printk() caused a build failure when
CONFIG_PRINTK is disabled:

fs/btrfs/send.c: In function 'send_rename':
fs/btrfs/ctree.h:3367:2: error: implicit declaration of function 'btrfs_no_printk' [-Werror=implicit-function-declaration]

This moves the helper outside of that #ifdef so it is always
defined, and changes the existing #ifdef to refer to that
helper as well for consistency.

Fixes: 47c57058ff2c ("btrfs: btrfs_debug should consume fs_info when DEBUG is not defined")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h