spl.h: make <spl.h> self-contained
PATCH 1/1 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 <[email protected]>
---
include/spl.h | 4 ++++ 1 file changed, 4 insertions(+)
include/spl.h +4 -0
@@ -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
Signature · 1 line
2.17.1
PATCH 1/1 spl.h: make <spl.h> self-contained
Quoted 11 lines · Masahiro Yamada
The static inline function
spl_phaseneeds <asm/global_data.h>.Some functions take pointers to struct
blk_descorimage_header. Add forward declarations.Signed-off-by Masahiro Yamada <[email protected]>---
include/spl.h | 4 ++++ 1 file changed, 4 insertions(+)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 spl.h: make <spl.h> self-contained
In reply to Masahiro YamadaQuoted 7 lines · Masahiro Yamada
The static inline function
spl_phaseneeds <asm/global_data.h>.Some functions take pointers to struct
blk_descorimage_header. Add forward declarations.Signed-off-by Masahiro Yamada <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/next, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200317/2810c01d/attachment.sig>