* [PATCH] spl.h: make <spl.h> self-contained @ 2020-02-24 17:25 Masahiro Yamada 2020-02-26 15:33 ` Simon Glass 2020-03-17 15:28 ` Tom Rini 0 siblings, 2 replies; 3+ messages in thread From: Masahiro Yamada @ 2020-02-24 17:25 UTC (permalink / raw) To: u-boot 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> --- 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 <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 -- 2.17.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] spl.h: make <spl.h> self-contained 2020-02-24 17:25 [PATCH] spl.h: make <spl.h> self-contained Masahiro Yamada @ 2020-02-26 15:33 ` Simon Glass 2020-03-17 15:28 ` Tom Rini 1 sibling, 0 replies; 3+ messages in thread From: Simon Glass @ 2020-02-26 15:33 UTC (permalink / raw) To: u-boot On Mon, 24 Feb 2020 at 10:26, Masahiro Yamada <masahiroy@kernel.org> wrote: > > 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> > --- > > include/spl.h | 4 ++++ > 1 file changed, 4 insertions(+) Reviewed-by: Simon Glass <sjg@chromium.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] spl.h: make <spl.h> self-contained 2020-02-24 17:25 [PATCH] spl.h: make <spl.h> self-contained Masahiro Yamada 2020-02-26 15:33 ` Simon Glass @ 2020-03-17 15:28 ` Tom Rini 1 sibling, 0 replies; 3+ messages in thread From: Tom Rini @ 2020-03-17 15:28 UTC (permalink / raw) To: u-boot On Tue, Feb 25, 2020 at 02:25:46AM +0900, Masahiro Yamada wrote: > 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> Applied to u-boot/next, thanks! -- 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> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-17 15:28 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-02-24 17:25 [PATCH] spl.h: make <spl.h> self-contained Masahiro Yamada 2020-02-26 15:33 ` Simon Glass 2020-03-17 15:28 ` Tom Rini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox