Re: [PATCH] serial: 8250: omap: Move uart_write() inside PM section
From: Tony Lindgren
Date: Mon May 15 2023 - 08:24:03 EST
* Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> [230515 06:57]:
> If CONFIG_PM is not set (e.g. m68k/allmodconfig):
>
> drivers/tty/serial/8250/8250_omap.c:169:13: error: ‘uart_write’ defined but not used [-Werror=unused-function]
> 169 | static void uart_write(struct omap8250_priv *priv, u32 reg, u32 val)
> | ^~~~~~~~~~
>
> Fix tis by moving uart_write() inside the existing section protected
> by #ifdef CONFIG_PM.
OK thanks for fixing it:
Reviewed-by: Tony Lindgren <tony@xxxxxxxxxxx>