mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
arch/sim: Fixup_heap.c:154:3: error: 'heap_impl' undeclared
and up_heap.c:58:33: error: field 'mm_procfs' has incomplete type Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I4e871e397758c5b0a54803b6cfd1e0c697bef5d8
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/fs/procfs.h>
|
||||
#include <nuttx/mm/mm.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
@@ -151,10 +152,10 @@ void mm_initialize(FAR struct mm_heap_s *heap, FAR const char *name,
|
||||
heap->mm_impl = impl;
|
||||
|
||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMINFO)
|
||||
heap_impl->mm_procfs.name = name;
|
||||
heap_impl->mm_procfs.mallinfo = (FAR void *)mm_mallinfo;
|
||||
heap_impl->mm_procfs.user_data = heap;
|
||||
procfs_register_meminfo(&heap_impl->mm_procfs);
|
||||
impl->mm_procfs.name = name;
|
||||
impl->mm_procfs.mallinfo = (FAR void *)mm_mallinfo;
|
||||
impl->mm_procfs.user_data = heap;
|
||||
procfs_register_meminfo(&impl->mm_procfs);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user