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:
Xiang Xiao
2022-03-17 11:20:20 +08:00
committed by Alan Carvalho de Assis
parent 660b80b329
commit c2a1d0f5ae
4 changed files with 6 additions and 9 deletions
+1 -2
View File
@@ -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