btrfs-progs: make it static if function isn't called outside
authorAnand Jain <anand.jain@oracle.com>
Wed, 13 Nov 2013 08:19:39 +0000 (16:19 +0800)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:01 +0000 (08:22 -0800)
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
disk-io.c
qgroup.c
utils.c

index 7ad2cc2..dc84a46 100644 (file)
--- a/disk-io.c
+++ b/disk-io.c
@@ -344,7 +344,7 @@ int write_and_map_eb(struct btrfs_trans_handle *trans,
        return 0;
 }
 
-int write_tree_block(struct btrfs_trans_handle *trans,
+static int write_tree_block(struct btrfs_trans_handle *trans,
                     struct btrfs_root *root,
                     struct extent_buffer *eb)
 {
index 1c68046..94d1feb 100644 (file)
--- a/qgroup.c
+++ b/qgroup.c
@@ -76,7 +76,7 @@ struct btrfs_qgroup_list {
 /*
  * qgroupid,rfer,excl default to set
  */
-struct {
+static struct {
        char *name;
        char *column_name;
        int need_print;
@@ -652,7 +652,7 @@ static int add_qgroup(struct qgroup_lookup *qgroup_lookup, u64 qgroupid,
        return ret;
 }
 
-void __free_btrfs_qgroup(struct btrfs_qgroup *bq)
+static void __free_btrfs_qgroup(struct btrfs_qgroup *bq)
 {
        struct btrfs_qgroup_list *list;
        while (!list_empty(&bq->qgroups)) {
@@ -674,7 +674,7 @@ void __free_btrfs_qgroup(struct btrfs_qgroup *bq)
        free(bq);
 }
 
-void __free_all_qgroups(struct qgroup_lookup *root_tree)
+static void __free_all_qgroups(struct qgroup_lookup *root_tree)
 {
        struct btrfs_qgroup *entry;
        struct rb_node *n;
diff --git a/utils.c b/utils.c
index 3c9701d..2422338 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -1954,7 +1954,7 @@ int test_dev_for_mkfs(char *file, int force_overwrite, char *estr)
        return 0;
 }
 
-int test_skip_this_disk(char *path)
+static int test_skip_this_disk(char *path)
 {
        int fd;