Fix some warnings found in build testing.

This commit is contained in:
Gregory Nutt
2019-01-27 17:23:01 -06:00
parent 732bef73a7
commit 78c8485b0d
5 changed files with 10 additions and 1 deletions
+4
View File
@@ -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 */