arch/sim: fix compile break when using mallinfo_task with custom mm manager
/usr/bin/ld: nuttx.rel: in function `mallinfo_task': nuttx/mm/umm_heap/umm_mallinfo.c:67: undefined reference to `mm_mallinfo_task' Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
154bb93c45
commit
8101978765
@ -388,6 +388,21 @@ int mm_mallinfo(struct mm_heap_s *heap, struct mallinfo *info)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: mm_mallinfo_task
|
||||
*
|
||||
* Description:
|
||||
* mallinfo_task returns a copy of updated current task's heap information.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int mm_mallinfo_task(struct mm_heap_s *heap, struct mallinfo_task *info)
|
||||
{
|
||||
info->aordblks = 0;
|
||||
info->uordblks = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: mm_memdump
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user