[PATCH v5 1/6] arm: uniphier: Change _debug_uart_putc function to inline

Kever Yang kever.yang at rock-chips.com
Wed May 21 03:57:19 CEST 2025


On 2025/5/20 19:36, Lukasz Czechowski wrote:
> Update the definition of _debug_uart_putc to static inline.
> This matches the instructions in include/debug_uart.h and
> provides consistency with implementations for other platforms.
>
> Signed-off-by: Lukasz Czechowski <lukasz.czechowski at thaumatec.com>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>

Thanks,
- Kever
> ---
>   arch/arm/mach-uniphier/debug-uart/debug-uart.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-uniphier/debug-uart/debug-uart.c b/arch/arm/mach-uniphier/debug-uart/debug-uart.c
> index 6836eb63bfac..1a3e290aa978 100644
> --- a/arch/arm/mach-uniphier/debug-uart/debug-uart.c
> +++ b/arch/arm/mach-uniphier/debug-uart/debug-uart.c
> @@ -16,7 +16,7 @@
>   #define UNIPHIER_UART_LSR		0x14
>   #define UNIPHIER_UART_LDR		0x24
>   
> -static void _debug_uart_putc(int c)
> +static inline void _debug_uart_putc(int c)
>   {
>   	void __iomem *base = (void __iomem *)CONFIG_VAL(DEBUG_UART_BASE);
>   
>


More information about the U-Boot mailing list