This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new fe52c8475c1 procfs/mempool: remove unnecessary dependencies about 
/proc/mempool
fe52c8475c1 is described below

commit fe52c8475c12d5f30417814d45f10f69f2f8b84e
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Wed Jan 14 15:14:48 2026 +0800

    procfs/mempool: remove unnecessary dependencies about /proc/mempool
    
    This commit removes overly strict Kconfig dependencies for the
    /proc/mempool procfs entry, making it available more broadly.
    
    The mempool procfs entry can provide useful information even when
    MM_HEAP_MEMPOOL is not enabled or when threshold is 0. Removing these
    dependencies makes the feature more accessible for debugging and
    system monitoring purposes.
    
    Signed-off-by: dongjiuzhu1 <[email protected]>
    Signed-off-by: jingfei <[email protected]>
---
 fs/procfs/fs_procfs.c | 2 +-
 mm/Kconfig            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/procfs/fs_procfs.c b/fs/procfs/fs_procfs.c
index d344a213cf1..f9645e8d58f 100644
--- a/fs/procfs/fs_procfs.c
+++ b/fs/procfs/fs_procfs.c
@@ -160,7 +160,7 @@ static const struct procfs_entry_s g_procfs_entries[] =
   { "meminfo",      &g_meminfo_operations,  PROCFS_FILE_TYPE   },
 #endif
 
-#if defined(CONFIG_MM_HEAP_MEMPOOL) && 
!defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
+#ifndef CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL
   { "mempool",      &g_mempool_operations,  PROCFS_FILE_TYPE   },
 #endif
 
diff --git a/mm/Kconfig b/mm/Kconfig
index fefd21a3b4d..42ba105ac2e 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -383,7 +383,7 @@ config MM_HEAP_MEMPOOL_BACKTRACE_SKIP
 config FS_PROCFS_EXCLUDE_MEMPOOL
        bool "Exclude mempool from procfs"
        default DEFAULT_SMALL
-       depends on FS_PROCFS && MM_HEAP_MEMPOOL_THRESHOLD > 0
+       depends on FS_PROCFS
 
 source "mm/kasan/Kconfig"
 

Reply via email to