[U-Boot] [PATCH] sandbox: fix build error due to missing struct udevice definition

AKASHI Takahiro takahiro.akashi at linaro.org
Fri Oct 4 04:45:18 UTC 2019


Without this patch, compiling may potentially fail.

Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
 arch/sandbox/include/asm/u-boot-sandbox.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/sandbox/include/asm/u-boot-sandbox.h b/arch/sandbox/include/asm/u-boot-sandbox.h
index b2b8e3645559..798d0030773e 100644
--- a/arch/sandbox/include/asm/u-boot-sandbox.h
+++ b/arch/sandbox/include/asm/u-boot-sandbox.h
@@ -26,6 +26,8 @@ int cleanup_before_linux(void);
 /* drivers/video/sandbox_sdl.c */
 int sandbox_lcd_sdl_early_init(void);
 
+struct udevice;
+
 /**
  * pci_map_physmem() - map a PCI device into memory
  *
-- 
2.21.0



More information about the U-Boot mailing list