mirror of
https://github.com/apache/nuttx.git
synced 2025-12-07 01:44:23 +08:00
Fix some warnings found in build testing.
This commit is contained in:
@@ -48,7 +48,6 @@
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/mm/mm.h>
|
||||
#include <nuttx/mm/shm.h>
|
||||
#include <nuttx/binfmt/binfmt.h>
|
||||
|
||||
|
||||
@@ -49,7 +49,9 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/addrenv.h>
|
||||
#include <nuttx/mm/mm.h>
|
||||
#include <nuttx/binfmt/elf.h>
|
||||
|
||||
#include "libelf.h"
|
||||
@@ -302,10 +304,12 @@ int elf_load(FAR struct elf_loadinfo_s *loadinfo)
|
||||
goto errout_with_buffers;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
/* Initialize the user heap */
|
||||
|
||||
umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE,
|
||||
up_addrenv_heapsize(&loadinfo->addrenv));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Load ELF section data into memory */
|
||||
|
||||
Reference in New Issue
Block a user