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:
Xiang Xiao
2022-11-06 00:44:53 +08:00
committed by Alan Carvalho de Assis
parent a446b5816f
commit 38d1244751
5 changed files with 7 additions and 21 deletions
+2 -2
View File
@@ -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