efi: stub: Change _debug_uart_putc function to inline
authorLukasz Czechowski <lukasz.czechowski@thaumatec.com>
Tue, 20 May 2025 11:36:40 +0000 (13:36 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 6 Jun 2025 09:12:20 +0000 (17:12 +0800)
Update definition of _debug_uart_putc to static inline.
This will allow to avoid compilation warnings about unused code
after introduction of patch changing debug uart functions to
dummies if CONFIG_DEBUG_UART is not set.
This also matches the instructions in include/debug_uart.h and
provides consistency with implementations for other platforms.

Signed-off-by: Lukasz Czechowski <lukasz.czechowski@thaumatec.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
lib/efi/efi_stub.c

index 40fc29d..a083c7f 100644 (file)
@@ -83,7 +83,7 @@ void puts(const char *str)
                putc(*str++);
 }
 
-static void _debug_uart_putc(int ch)
+static inline void _debug_uart_putc(int ch)
 {
        putc(ch);
 }