diff --git a/fs/inode/fs_inoderemove.c b/fs/inode/fs_inoderemove.c index a9ce4cc0d5..1fff65c024 100644 --- a/fs/inode/fs_inoderemove.c +++ b/fs/inode/fs_inoderemove.c @@ -33,7 +33,7 @@ #include "inode/inode.h" /**************************************************************************** - * Public Functions + * Private Functions ****************************************************************************/ /**************************************************************************** @@ -54,7 +54,7 @@ * ****************************************************************************/ -FAR struct inode *inode_unlink(FAR const char *path) +static FAR struct inode *inode_unlink(FAR const char *path) { struct inode_search_s desc; FAR struct inode *node = NULL; @@ -102,6 +102,10 @@ FAR struct inode *inode_unlink(FAR const char *path) return node; } +/**************************************************************************** + * Public Functions + ****************************************************************************/ + /**************************************************************************** * Name: inode_remove * diff --git a/fs/inode/inode.h b/fs/inode/inode.h index 1beb665eaa..3518676765 100644 --- a/fs/inode/inode.h +++ b/fs/inode/inode.h @@ -328,21 +328,6 @@ void inode_root_reserve(void); int inode_reserve(FAR const char *path, mode_t mode, FAR struct inode **inode); -/**************************************************************************** - * Name: inode_unlink - * - * Description: - * Given a path, remove a the node from the in-memory, inode tree that the - * path refers to. This is normally done in preparation to removing or - * moving an inode. - * - * Assumptions/Limitations: - * The caller must hold the inode semaphore - * - ****************************************************************************/ - -FAR struct inode *inode_unlink(FAR const char *path); - /**************************************************************************** * Name: inode_remove *