cmd/spl.c: Include <libfdt.h> for fdt_totalsize
authorTom Rini <trini@konsulko.com>
Sun, 27 Aug 2017 01:17:05 +0000 (21:17 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 27 Aug 2017 01:17:05 +0000 (21:17 -0400)
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

index 1165b786d3428745fb8660d967336366ba443905..ad033652d4c299bbe7087f235fee737309a405d2 100644 (file)
--- 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;