btrfs-progs: unexport btrfs_get_string_for_multiple_profiles

It's used only by the interface functions so does not need to be
exported.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2020-05-04 14:48:16 +02:00
parent 5268a125ad
commit 2432ed89ba
2 changed files with 7 additions and 7 deletions

View File

@ -1755,7 +1755,7 @@ static void sprint_profiles(char **ptr, u64 profiles)
}
}
int btrfs_get_string_for_multiple_profiles(int fd, char **data_ret,
static int btrfs_get_string_for_multiple_profiles(int fd, char **data_ret,
char **metadata_ret, char **mixed_ret, char **system_ret)
{
int ret;
@ -1828,6 +1828,11 @@ int btrfs_get_string_for_multiple_profiles(int fd, char **data_ret,
return 1;
}
int btrfs_test_for_multiple_profiles_by_fd(int fd)
{
return btrfs_get_string_for_multiple_profiles(fd, NULL, NULL, NULL, NULL);
}
int btrfs_warn_multiple_profiles(int fd)
{
int ret;

View File

@ -137,12 +137,7 @@ u64 rand_u64(void);
unsigned int rand_range(unsigned int upper);
void init_rand_seed(u64 seed);
int btrfs_get_string_for_multiple_profiles(int fd, char **data_ret,
char **metadata_ret, char **mixed_ret, char **system_ret);
static inline int btrfs_test_for_multiple_profiles_by_fd(int fd)
{
return btrfs_get_string_for_multiple_profiles(fd, NULL, NULL, NULL, NULL);
}
int btrfs_test_for_multiple_profiles_by_fd(int fd);
int btrfs_warn_multiple_profiles(int fd);
#endif