bcachefs: make bch2_target_to_text_sb static
PATCH 1/1 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 <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- fs/bcachefs/disk_groups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/bcachefs/disk_groups.c +1 -1
@@ -580,7 +580,7 @@ void bch2_target_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) } } -void bch2_target_to_text_sb (struct printbuf *out,struct bch_sb *sb,unsigned v) +static void bch2_target_to_text_sb (struct printbuf *out,struct bch_sb *sb,unsigned v) {struct target t =target_decode (v);
Signature · 1 line
2.20.1.7.g153144c
Kent Overstreet
AppliedQuoted 8 lines · Jiapeng Chong
The
bch2_target_to_text_sbare not used outside the filedisk_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 <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Thanks, applied