summaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-02-25 02:25:46 +0900
committerTom Rini <trini@konsulko.com>2020-03-16 16:42:50 -0400
commit271cf2f421af072932404d56e6a7c97538d65de0 (patch)
treea674b354872fd3033f89685013513a36bd0dc270 /include/spl.h
parent77c4ba54c678d5c892e4b692640424dbfe649e30 (diff)
downloadu-boot-271cf2f421af072932404d56e6a7c97538d65de0.tar.gz
u-boot-271cf2f421af072932404d56e6a7c97538d65de0.tar.bz2
u-boot-271cf2f421af072932404d56e6a7c97538d65de0.zip
spl.h: make <spl.h> self-contained
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>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h4
1 files changed, 4 insertions, 0 deletions
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 <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