From c527e3f52db34ce945ebea55e8d16c6e8fda2705 Mon Sep 17 00:00:00 2001 From: Andrew Scull Date: Wed, 23 Mar 2022 20:20:37 +0000 Subject: [PATCH] sandbox: sdl: Add stub sandbox_sdl_remove_display() Building the sandbox with NO_SDL=1 resulted in an undefined reference to 'sandbox_sdl_remove_display'. Resolve this by adding a stub implementation to match the stubs of the other similar functions. Signed-off-by: Andrew Scull Cc: Simon Glass Cc: Anatolij Gustschin Reviewed-by: Simon Glass --- 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 e271a849af1..56dcb84803d 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;