From 0329407d27f55c6f0007b152b281ce0e77aba148 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Wed, 31 Jul 2024 11:06:28 +0800 Subject: [PATCH] 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 --- fs/procfs/fs_procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/procfs/fs_procfs.c b/fs/procfs/fs_procfs.c index f606aa4ae1..27e45acbfb 100644 --- a/fs/procfs/fs_procfs.c +++ b/fs/procfs/fs_procfs.c @@ -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