]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: sdl: Add stub sandbox_sdl_remove_display()
authorAndrew Scull <ascull@google.com>
Wed, 23 Mar 2022 20:20:37 +0000 (20:20 +0000)
committerAnatolij Gustschin <agust@denx.de>
Sat, 25 Jun 2022 05:54:20 +0000 (07:54 +0200)
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 <ascull@google.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/sdl.h

index e271a849af10c81689137ca9451b34be31ba534e..56dcb84803d332456cb032c7d5d9669e6e9a724b 100644 (file)
@@ -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;