fs/driver: Fix missing declaration of find_mtddriver when CONFIG_MTD=n

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2021-10-22 11:25:01 -03:00 committed by Xiang Xiao
parent 9056cabd83
commit c019533d7a

View File

@ -94,7 +94,7 @@ int find_blockdriver(FAR const char *pathname, int mountflags,
*
****************************************************************************/
#if !defined(CONFIG_DISABLE_MOUNTPOINT)
#ifndef CONFIG_DISABLE_MOUNTPOINT
int block_proxy(FAR struct file *filep, FAR const char *blkdev, int oflags);
#endif
@ -142,7 +142,7 @@ int mtd_proxy(FAR const char *mtddev, int mountflags,
*
****************************************************************************/
#if defined(CONFIG_MTD) && !defined(CONFIG_DISABLE_MOUNTPOINT)
#ifndef CONFIG_DISABLE_MOUNTPOINT
int find_mtddriver(FAR const char *pathname, FAR struct inode **ppinode);
#endif