From 970cbff6389955ca58971b3e86dcbd3c4dc19668 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 19 Oct 2021 11:12:04 +0800 Subject: [PATCH] fs/partition: Make parse_ptable_partition to partition.h Signed-off-by: Xiang Xiao --- fs/partition/fs_partition.c | 10 ---------- fs/partition/partition.h | 6 ++++++ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/fs/partition/fs_partition.c b/fs/partition/fs_partition.c index 110bacd481..4a9287d507 100644 --- a/fs/partition/fs_partition.c +++ b/fs/partition/fs_partition.c @@ -43,16 +43,6 @@ static int parse_partition(FAR struct partition_state_s *state, partition_handler_t handler, FAR void *arg); -/**************************************************************************** - * Public Function Prototypes - ****************************************************************************/ - -#ifdef CONFIG_PTABLE_PARTITION -int parse_ptable_partition(FAR struct partition_state_s *state, - partition_handler_t handler, - FAR void *arg); -#endif - /**************************************************************************** * Private Data ****************************************************************************/ diff --git a/fs/partition/partition.h b/fs/partition/partition.h index 2c8348ff7b..8c05c14393 100644 --- a/fs/partition/partition.h +++ b/fs/partition/partition.h @@ -52,6 +52,12 @@ int read_partition_block(FAR struct partition_state_s *state, FAR void *buffer, size_t startblock, size_t nblocks); +#ifdef CONFIG_PTABLE_PARTITION +int parse_ptable_partition(FAR struct partition_state_s *state, + partition_handler_t handler, + FAR void *arg); +#endif + #endif /* CONFIG_DISABLE_MOUNTPOINT */ #endif /* __FS_PARTITION_PARTITION_H */