From patchwork Mon Feb 24 17:25:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 236767 List-Id: U-Boot discussion From: masahiroy at kernel.org (Masahiro Yamada) Date: Tue, 25 Feb 2020 02:25:46 +0900 Subject: [PATCH] spl.h: make self-contained Message-ID: <20200224172547.14072-1-masahiroy@kernel.org> The static inline function spl_phase needs . Some functions take pointers to struct blk_desc or image_header. Add forward declarations. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- include/spl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/spl.h b/include/spl.h index 6087cd793c..5d8d14dbf5 100644 --- a/include/spl.h +++ b/include/spl.h @@ -10,9 +10,13 @@ /* Platform-specific defines */ #include +#include #include #include +struct blk_desc; +struct image_header; + /* Value in r0 indicates we booted from U-Boot */ #define UBOOT_NOT_LOADED_FROM_SPL 0x13578642