Skip to content

Commit 48d584b

Browse files
wb-zjp846396Kent Overstreet
authored andcommitted
bcachefs: make bch2_target_to_text_sb static
The bch2_target_to_text_sb are not used outside the file disk_groups.c, so the modification is defined as static. fs/bcachefs/disk_groups.c:583:6: warning: no previous prototype for ‘bch2_target_to_text_sb’. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7144 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
1 parent b85ea95 commit 48d584b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/bcachefs/disk_groups.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ void bch2_target_to_text(struct printbuf *out, struct bch_fs *c, unsigned v)
580580
}
581581
}
582582

583-
void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v)
583+
static void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v)
584584
{
585585
struct target t = target_decode(v);
586586

0 commit comments

Comments
 (0)