• A
    btrfs: fix btrfs_no_printk stub helper · 2fd57fcb
    Arnd Bergmann 提交于
    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: NArnd Bergmann <arnd@arndb.de>
    Reviewed-by: NDavid Sterba <dsterba@suse.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    2fd57fcb
ctree.h 125.3 KB