fs: Add static to stat_recursive

since it is called in one source file

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-09-16 02:24:01 +08:00 committed by Brennan Ashton
parent 1e848e5d8b
commit 6584bfa361

View File

@ -58,7 +58,8 @@
****************************************************************************/
static inline int statroot(FAR struct stat *buf);
int stat_recursive(FAR const char *path, FAR struct stat *buf, int resolve);
static int stat_recursive(FAR const char *path,
FAR struct stat *buf, int resolve);
/****************************************************************************
* Private Functions
@ -93,7 +94,8 @@ static inline int statroot(FAR struct stat *buf)
*
****************************************************************************/
int stat_recursive(FAR const char *path, FAR struct stat *buf, int resolve)
static int stat_recursive(FAR const char *path,
FAR struct stat *buf, int resolve)
{
struct inode_search_s desc;
FAR struct inode *inode;