mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
bcachefs: Fix build warning when CONFIG_BCACHEFS_DEBUG=n
this function is only used by debug code, but we'd like to always build it so we know that it does build. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
811d2bcd85
commit
b3d1e6cab2
@ -2408,9 +2408,10 @@ int bch2_trans_exit(struct btree_trans *trans)
|
||||
return trans->error ? -EIO : 0;
|
||||
}
|
||||
|
||||
static void bch2_btree_iter_node_to_text(struct printbuf *out,
|
||||
struct btree_bkey_cached_common *_b,
|
||||
enum btree_iter_type type)
|
||||
static void __maybe_unused
|
||||
bch2_btree_iter_node_to_text(struct printbuf *out,
|
||||
struct btree_bkey_cached_common *_b,
|
||||
enum btree_iter_type type)
|
||||
{
|
||||
pr_buf(out, " %px l=%u %s:",
|
||||
_b, _b->level, bch2_btree_ids[_b->btree_id]);
|
||||
|
Loading…
Reference in New Issue
Block a user