@@ -61,8 +61,6 @@ int set_label(const char *btrfs_dev, const char *label);
int check_arg_type(const char *input);
int get_label_mounted(const char *mount_path, char *labelp);
int get_label_unmounted(const char *dev, char *label);
-int csum_tree_block(struct btrfs_fs_info *root, struct extent_buffer *buf,
- int verify);
int ask_user(const char *question);
int lookup_path_rootid(int fd, u64 *rootid);
int find_mount_fsroot(const char *subvol, const char *subvolid, char **mount);
@@ -208,8 +208,8 @@ int verify_tree_block_csum_silent(struct extent_buffer *buf, u16 csum_size,
return __csum_tree_block_size(buf, csum_size, 1, 1, csum_type);
}
-int csum_tree_block(struct btrfs_fs_info *fs_info,
- struct extent_buffer *buf, int verify)
+static int csum_tree_block(struct btrfs_fs_info *fs_info,
+ struct extent_buffer *buf, int verify)
{
u16 csum_size = fs_info->csum_size;
u16 csum_type = fs_info->csum_type;
The function csum_tree_block() is not really utilized by anyone, all current callers just use csum_tree_block_size(). Furthermore there is a stale definition in common/utils.h which is using the old "struct btrfs_root" as the first argument, while we have already migrated to "struct btrfs_fs_info". So just unexport csum_tree_block() and remove the stale definition. Signed-off-by: Qu Wenruo <wqu@suse.com> --- common/utils.h | 2 -- kernel-shared/disk-io.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)