mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
fs/driver/fs_findmtddriver.c: Fix compile failed if NO CONFIG_MTD.
This commit is contained in:
+2
-2
@@ -40,10 +40,10 @@ CSRCS += fs_registerdriver.c fs_unregisterdriver.c
|
|||||||
ifneq ($(CONFIG_DISABLE_MOUNTPOINT),y)
|
ifneq ($(CONFIG_DISABLE_MOUNTPOINT),y)
|
||||||
CSRCS += fs_registerblockdriver.c fs_unregisterblockdriver.c
|
CSRCS += fs_registerblockdriver.c fs_unregisterblockdriver.c
|
||||||
CSRCS += fs_findblockdriver.c fs_openblockdriver.c fs_closeblockdriver.c
|
CSRCS += fs_findblockdriver.c fs_openblockdriver.c fs_closeblockdriver.c
|
||||||
CSRCS += fs_blockpartition.c
|
CSRCS += fs_blockpartition.c fs_findmtddriver.c
|
||||||
|
|
||||||
ifeq ($(CONFIG_MTD),y)
|
ifeq ($(CONFIG_MTD),y)
|
||||||
CSRCS += fs_registermtddriver.c fs_unregistermtddriver.c fs_findmtddriver.c
|
CSRCS += fs_registermtddriver.c fs_unregistermtddriver.c
|
||||||
CSRCS += fs_mtdproxy.c
|
CSRCS += fs_mtdproxy.c
|
||||||
ifeq ($(CONFIG_MTD_PARTITION),y)
|
ifeq ($(CONFIG_MTD_PARTITION),y)
|
||||||
CSRCS += fs_mtdpartition.c
|
CSRCS += fs_mtdpartition.c
|
||||||
|
|||||||
@@ -125,4 +125,11 @@ errout_with_search:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
int find_mtddriver(FAR const char *pathname, FAR struct inode **ppinode)
|
||||||
|
{
|
||||||
|
return -ENODEV;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_MTD */
|
#endif /* CONFIG_MTD */
|
||||||
|
|||||||
Reference in New Issue
Block a user