summaryrefslogtreecommitdiff
path: root/corking.c
AgeCommit message (Expand)AuthorFilesLines
2013-06-15misc: remove two header commentsDaniel Borkmann1-6/+0
2013-06-04corking: use bool instead of intDaniel Borkmann1-4/+4
2013-06-04corking: break out udp/tcp cork functionsDaniel Borkmann1-0/+66
f='/cgit.cgi/linux/net-next.git/commit/?h=packet-loop-back&id=c01f5f96f511419ee656a60e09605b7b6a63b66c'>c01f5f96f511419ee656a60e09605b7b6a63b66c (patch) treec7620ef5a210b8304e46a514d42b84036fad44b2 parent04ab956ee69cdbe8627f6e34b88af5c308eede84 (diff)
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>
Diffstat