diff --git a/common/utils.c b/common/utils.c index 68de1ade..2a5e6466 100644 --- a/common/utils.c +++ b/common/utils.c @@ -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; diff --git a/common/utils.h b/common/utils.h index f5c65c92..48b0e1ca 100644 --- a/common/utils.h +++ b/common/utils.h @@ -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