diff mbox series

[RFC,v4,01/28] video: sandbox: Add dummy function for sandbox_sdl_remove_display().

Message ID 20220616223158.9225-2-francis.laniel@amarulasolutions.com
State Accepted
Commit c527e3f52db34ce945ebea55e8d16c6e8fda2705
Delegated to: Tom Rini
Headers show
Series Modernize U-Boot shell | expand

Commit Message

Francis Laniel June 16, 2022, 10:31 p.m. UTC
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@amarulasolutions.com>
---
 arch/sandbox/include/asm/sdl.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

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;