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:
parent
34fa02a652
commit
0329407d27
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ static const struct procfs_entry_s g_procfs_entries[] =
|
|||
{ "meminfo", &g_meminfo_operations, PROCFS_FILE_TYPE },
|
||||
#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 },
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue