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:
buxiasen 2024-07-31 11:06:28 +08:00 committed by Xiang Xiao
parent 34fa02a652
commit 0329407d27

View file

@ -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