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

Tom Rini trini at konsulko.com
Sun Aug 27 01:18:03 UTC 2017


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 at 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;
 
-- 
1.9.1



More information about the U-Boot mailing list