This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit c019533d7a08ed3eb87479643ebac28c0b1e7678 Author: Gustavo Henrique Nihei <[email protected]> AuthorDate: Fri Oct 22 11:25:01 2021 -0300 fs/driver: Fix missing declaration of find_mtddriver when CONFIG_MTD=n Signed-off-by: Gustavo Henrique Nihei <[email protected]> --- fs/driver/driver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/driver/driver.h b/fs/driver/driver.h index 5e0470e..a0bfa4c 100644 --- a/fs/driver/driver.h +++ b/fs/driver/driver.h @@ -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
