[U-Boot] [PATCH] cmd/spl.c: Include <libfdt.h> for fdt_totalsize

In order to be able to reliably use fdt_totalsize, we must have <libfdt.h> included.
Fixes: 767cb74a0028 ("cmd: spl: provide address and size of prepared FDT ...") Signed-off-by: Tom Rini trini@konsulko.com --- cmd/spl.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/cmd/spl.c b/cmd/spl.c index 1165b786d342..ad033652d4c2 100644 --- a/cmd/spl.c +++ b/cmd/spl.c @@ -8,6 +8,7 @@ #include <common.h> #include <command.h> #include <cmd_spl.h> +#include <libfdt.h>
DECLARE_GLOBAL_DATA_PTR;

On Sat, Aug 26, 2017 at 8:18 PM, Tom Rini trini@konsulko.com wrote:
In order to be able to reliably use fdt_totalsize, we must have <libfdt.h> included.
Fixes: 767cb74a0028 ("cmd: spl: provide address and size of prepared FDT ...") Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Joe Hershberger joe.hershberger@ni.com Tested-by: Joe Hershberger joe.hershberger@ni.com
participants (2)
-
Joe Hershberger
-
Tom Rini