[RFC PATCH v3 01/23] video: sandbox: Add dummy function for sandbox_sdl_remove_display().

Francis Laniel francis.laniel at amarulasolutions.com
Fri Apr 1 01:26:54 CEST 2022


We need to defined a dummy version of this function when compiling with
NO_SDL=1.
Otherwise, we would face compilation error.

Fixes: 250e735c692b ("video: sandbox: Avoid duplicate display windows")
Signed-off-by: Francis Laniel <francis.laniel at amarulasolutions.com>
---
 arch/sandbox/include/asm/sdl.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/sandbox/include/asm/sdl.h b/arch/sandbox/include/asm/sdl.h
index e271a849af..56dcb84803 100644
--- a/arch/sandbox/include/asm/sdl.h
+++ b/arch/sandbox/include/asm/sdl.h
@@ -94,6 +94,11 @@ static inline int sandbox_sdl_init_display(int width, int height, int log2_bpp,
 	return -ENODEV;
 }
 
+static inline int sandbox_sdl_remove_display(void)
+{
+	return -ENODEV;
+}
+
 static inline int sandbox_sdl_sync(void *lcd_base)
 {
 	return -ENODEV;
-- 
2.25.1



More information about the U-Boot mailing list