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

Francis Laniel
2022-06-16T22:33:25Z

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 --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