]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl.h: make <spl.h> self-contained
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 Feb 2020 17:25:46 +0000 (02:25 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 16 Mar 2020 20:42:50 +0000 (16:42 -0400)
The static inline function spl_phase needs <asm/global_data.h>.

Some functions take pointers to struct blk_desc or image_header.
Add forward declarations.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/spl.h

index 6087cd793c26154909bf6c66348c902aa0e264ce..5d8d14dbf5cd5ac6d7a66a69bece7a2d376bb5f3 100644 (file)
 
 /* Platform-specific defines */
 #include <linux/compiler.h>
+#include <asm/global_data.h>
 #include <asm/spl.h>
 #include <handoff.h>
 
+struct blk_desc;
+struct image_header;
+
 /* Value in r0 indicates we booted from U-Boot */
 #define UBOOT_NOT_LOADED_FROM_SPL      0x13578642