mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
procfs/mempool: fix did not remove when pool not enabled
will at lease lead to extra code size cost, also possible dataabort. Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
@@ -150,7 +150,7 @@ static const struct procfs_entry_s g_procfs_entries[] =
|
|||||||
{ "meminfo", &g_meminfo_operations, PROCFS_FILE_TYPE },
|
{ "meminfo", &g_meminfo_operations, PROCFS_FILE_TYPE },
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL
|
#if defined(CONFIG_MM_HEAP_MEMPOOL) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
|
||||||
{ "mempool", &g_mempool_operations, PROCFS_FILE_TYPE },
|
{ "mempool", &g_mempool_operations, PROCFS_FILE_TYPE },
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user