Files
android_kernel_xiaomi_sm8450/fs/btrfs
Jeff Mahoney c01f5f96f5 btrfs: btrfs_debug should consume fs_info when DEBUG is not defined
We can hit unused variable warnings when btrfs_debug and friends are
just aliases for no_printk.  This is due to the fs_info not getting
consumed by the function call, which can happen if convenenience
variables are used.  This patch adds a new btrfs_no_printk static inline
that consumes the convenience variable and does nothing else.  It
silences the unused variable warning and has no impact on the generated
code:

$ size fs/btrfs/extent_io.o*
   text	   data	    bss	    dec	    hex	filename
  44072	    152	     32	  44256	   ace0	fs/btrfs/extent_io.o.btrfs_no_printk
  44072	    152	     32	  44256	   ace0	fs/btrfs/extent_io.o.no_printk

Fixes: 27a0dd61a5 (Btrfs: make btrfs_debug match pr_debug handling related to DEBUG)
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2016-09-26 19:37:06 +02:00
..
2016-09-26 18:08:44 +02:00
2016-09-26 18:08:44 +02:00
2015-10-06 06:55:23 -07:00
2016-07-26 13:52:25 +02:00
2016-08-03 14:08:37 -07:00
2016-09-26 18:08:44 +02:00
2016-09-26 18:08:44 +02:00
2016-09-26 17:59:49 +02:00
2016-09-26 18:08:44 +02:00
2016-09-26 18:08:44 +02:00
2016-09-26 18:08:44 +02:00
2016-09-26 18:08:44 +02:00
2016-09-26 18:08:44 +02:00