mm: include malloc.h in mm/mm.h

to remove the forward declaration of mallinfo and mallinfo_task

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-05-28 18:34:32 +08:00 committed by Petro Karashchenko
parent 08da38b535
commit d920bfba10
16 changed files with 1 additions and 19 deletions

View file

@ -30,7 +30,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -28,7 +28,6 @@
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <limits.h>
#include <assert.h>
#include <stdlib.h>

View file

@ -26,7 +26,6 @@
#include <nuttx/arch.h>
#include <nuttx/mm/mm.h>
#include <malloc.h>
#include "esp32c3_rtcheap.h"

View file

@ -26,7 +26,6 @@
#include <assert.h>
#include <string.h>
#include <malloc.h>
#include <stdbool.h>
#include <nuttx/arch.h>

View file

@ -68,7 +68,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <malloc.h>
#include "sim_internal.h"

View file

@ -26,7 +26,6 @@
#include <nuttx/arch.h>
#include <nuttx/mm/mm.h>
#include <malloc.h>
#include <arch/esp32/memory_layout.h>
#include "xtensa.h"

View file

@ -26,7 +26,6 @@
#include <nuttx/arch.h>
#include <nuttx/mm/mm.h>
#include <malloc.h>
#include "esp32_iramheap.h"

View file

@ -26,7 +26,6 @@
#include <nuttx/arch.h>
#include <nuttx/mm/mm.h>
#include <malloc.h>
#include "esp32_rtcheap.h"

View file

@ -26,7 +26,6 @@
#include <nuttx/arch.h>
#include <nuttx/mm/mm.h>
#include <malloc.h>
#include "esp32s3_rtcheap.h"

View file

@ -28,7 +28,6 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <malloc.h>
#include <stdbool.h>
#include <stdlib.h>

View file

@ -29,6 +29,7 @@
#include <sys/types.h>
#include <stdbool.h>
#include <malloc.h>
/****************************************************************************
* Pre-processor Definitions
@ -108,7 +109,6 @@
****************************************************************************/
struct mm_heap_s; /* Forward reference */
struct mm_memdump_s;
/****************************************************************************
* Public Data
@ -314,9 +314,7 @@ void kmm_extend(FAR void *mem, size_t size, int region);
/* Functions contained in mm_mallinfo.c *************************************/
struct mallinfo; /* Forward reference */
struct mallinfo mm_mallinfo(FAR struct mm_heap_s *heap);
struct mallinfo_task; /* Forward reference */
struct mallinfo_task mm_mallinfo_task(FAR struct mm_heap_s *heap,
FAR const struct mm_memdump_s *dump);

View file

@ -24,8 +24,6 @@
#include <nuttx/config.h>
#include <malloc.h>
#include <nuttx/mm/mm.h>
#ifdef CONFIG_MM_KERNEL_HEAP

View file

@ -24,7 +24,6 @@
#include <nuttx/config.h>
#include <malloc.h>
#include <assert.h>
#include <debug.h>

View file

@ -27,7 +27,6 @@
#include <assert.h>
#include <debug.h>
#include <string.h>
#include <malloc.h>
#include <nuttx/arch.h>
#include <nuttx/mm/mm.h>

View file

@ -25,7 +25,6 @@
#include <nuttx/config.h>
#include <stdio.h>
#include <malloc.h>
#include <assert.h>
#include <debug.h>

View file

@ -29,7 +29,6 @@
#include <assert.h>
#include <debug.h>
#include <execinfo.h>
#include <malloc.h>
#include <sched.h>
#include <stdio.h>
#include <string.h>