On Tue, Nov 19, 2019 at 02:05:50PM +0200, Nikolay Borisov wrote: > --- a/fs/btrfs/volumes.h > +++ b/fs/btrfs/volumes.h > @@ -417,8 +417,6 @@ int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, > struct btrfs_bio **bbio_ret); > int btrfs_get_io_geometry(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, > u64 logical, u64 len, struct btrfs_io_geometry *io_geom); > -int btrfs_rmap_block(struct btrfs_fs_info *fs_info, u64 chunk_start, > - u64 physical, u64 **logical, int *naddrs, int *stripe_len); Other functions that are exported for tests have the declaration in .h under #ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS, so this should follow the pattern and not declare the function inside the tests.
