Re: [PATCH] serial: sunzilog: Mark sunzilog_putchar() __maybe_unused

From: Arnd Bergmann
Date: Tue Oct 26 2021 - 04:14:43 EST


On Tue, Oct 26, 2021 at 10:04 AM Geert Uytterhoeven
<geert@xxxxxxxxxxxxxx> wrote:
>
> If CONSOLE_POLL=n, CONFIG_SERIAL_SUNZILOG_CONSOLE=n, and CONFIG_SERIO=m:
>
> drivers/tty/serial/sunzilog.c:1128:13: error: ‘sunzilog_putchar’ defined but not used [-Werror=unused-function]
> 1128 | static void sunzilog_putchar(struct uart_port *port, int ch)
> | ^~~~~~~~~~~~~~~~
>
> Fix this by marking sunzilog_putchar() __maybe_unused.
>
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Looks good to me

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>