mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
procfs: Remove mallinfo from struct procfs_meminfo_entry_s
let's call mm_mallinfo directly Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
660b80b329
commit
c2a1d0f5ae
@@ -212,8 +212,7 @@ FAR struct mm_heap_s *mm_initialize(FAR const char *name,
|
||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMINFO)
|
||||
#if defined(CONFIG_BUILD_FLAT) || defined(__KERNEL__)
|
||||
heap->mm_procfs.name = name;
|
||||
heap->mm_procfs.mallinfo = (FAR void *)mm_mallinfo;
|
||||
heap->mm_procfs.user_data = heap;
|
||||
heap->mm_procfs.heap = heap;
|
||||
procfs_register_meminfo(&heap->mm_procfs);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user