summaryrefslogtreecommitdiff
path: root/lib/efi/efi_stub.c
diff options
context:
space:
mode:
authorLukasz Czechowski <lukasz.czechowski@thaumatec.com>2025-05-20 13:36:40 +0200
committerKever Yang <kever.yang@rock-chips.com>2025-06-06 17:12:20 +0800
commitc1f9995d822275aeda76ce5ae0d4b66c57f2d7fc (patch)
treeb6e53958cccbce5d50f30c1941d4b392fb686b89 /lib/efi/efi_stub.c
parent79d9ac8b13e34f6e70af4f6a513afb8ebde29c98 (diff)
efi: stub: Change _debug_uart_putc function to inline
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>
Diffstat (limited to 'lib/efi/efi_stub.c')
-rw-r--r--lib/efi/efi_stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index 40fc29d9adf..a083c7f1e9b 100644
--- a/lib/efi/efi_stub.c
+++ b/lib/efi/efi_stub.c
@@ -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);
}