Skip to contentSkip to conversation

spl.h: make <spl.h> self-contained

PATCH New Masahiro Yamada 3 participants 3 messages Feb 24, 2020 – Mar 17, 2020

lore
Share & tools
lore
#0 lore raw

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.

---

 include/spl.h | 4 ++++
 1 file changed, 4 insertions(+)
include/spl.h +4 -0
index 6087cd793c..5d8d14dbf5 100644
@@ -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
#2 lore raw

PATCH 1/1 spl.h: make <spl.h> self-contained

In reply to Masahiro Yamada
Quoted 7 lines · Masahiro Yamada

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.

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>