Skip to content

Commit 4e81950

Browse files
committed
nilfs2: make nilfs_sc_*_ops static
This kills the following sparse warnings: fs/nilfs2/segment.c:567:28: warning: symbol 'nilfs_sc_file_ops' was not declared. Should it be static? fs/nilfs2/segment.c:617:28: warning: symbol 'nilfs_sc_dat_ops' was not declared. Should it be static? fs/nilfs2/segment.c:625:28: warning: symbol 'nilfs_sc_dsync_ops' was not declared. Should it be static? Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
1 parent db55d92 commit 4e81950

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎fs/nilfs2/segment.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ static void nilfs_write_file_node_binfo(struct nilfs_sc_info *sci,
564564
*vblocknr = binfo->bi_v.bi_vblocknr;
565565
}
566566

567-
struct nilfs_sc_operations nilfs_sc_file_ops = {
567+
static struct nilfs_sc_operations nilfs_sc_file_ops = {
568568
.collect_data = nilfs_collect_file_data,
569569
.collect_node = nilfs_collect_file_node,
570570
.collect_bmap = nilfs_collect_file_bmap,
@@ -614,15 +614,15 @@ static void nilfs_write_dat_node_binfo(struct nilfs_sc_info *sci,
614614
*binfo_dat = binfo->bi_dat;
615615
}
616616

617-
struct nilfs_sc_operations nilfs_sc_dat_ops = {
617+
static struct nilfs_sc_operations nilfs_sc_dat_ops = {
618618
.collect_data = nilfs_collect_dat_data,
619619
.collect_node = nilfs_collect_file_node,
620620
.collect_bmap = nilfs_collect_dat_bmap,
621621
.write_data_binfo = nilfs_write_dat_data_binfo,
622622
.write_node_binfo = nilfs_write_dat_node_binfo,
623623
};
624624

625-
struct nilfs_sc_operations nilfs_sc_dsync_ops = {
625+
static struct nilfs_sc_operations nilfs_sc_dsync_ops = {
626626
.collect_data = nilfs_collect_file_data,
627627
.collect_node = NULL,
628628
.collect_bmap = NULL,

0 commit comments

Comments
 (0)