mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
mm/mempool: Remove MM_MEMPOOL option from Kconfig
since the linker can remove the unused object file from the final image Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
a446b5816f
commit
38d1244751
@@ -125,7 +125,7 @@ int mempool_init(FAR struct mempool_s *pool, FAR const char *name)
|
||||
nxsem_init(&pool->waitsem, 0, 0);
|
||||
}
|
||||
|
||||
#ifndef CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL
|
||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
|
||||
mempool_procfs_register(&pool->procfs, name);
|
||||
#endif
|
||||
|
||||
@@ -323,7 +323,7 @@ int mempool_deinit(FAR struct mempool_s *pool)
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL
|
||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
|
||||
mempool_procfs_unregister(&pool->procfs);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user