[U-Boot] [PATCH 2/5] libfdt_env.h: Add <malloc.h> in libfdt environment

Simon Glass sjg at chromium.org
Fri Jul 7 03:58:29 UTC 2017


On 30 June 2017 at 10:22, Pantelis Antoniou
<pantelis.antoniou at konsulko.com> wrote:
> Overlays require malloc so add it in the libfdt environment.
>
> Signed-off-by: Pantelis Antoniou <pantelis.antoniou at konsulko.com>
> ---
>  include/libfdt_env.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/libfdt_env.h b/include/libfdt_env.h
> index 6c6845f..59463c0 100644
> --- a/include/libfdt_env.h
> +++ b/include/libfdt_env.h
> @@ -27,6 +27,7 @@ typedef __be64 fdt64_t;
>  #include <vsprintf.h>
>
>  #define strtoul(cp, endp, base)        simple_strtoul(cp, endp, base)
> +#include <malloc.h>
>  #endif
>
>  /* adding a ramdisk needs 0x44 bytes in version 2008.10 */
> --
> 2.1.4
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list