From: YueHaibing Date: Tue, 28 May 2019 09:04:49 +0000 (+0800) Subject: serial: stm32: Make stm32_get_databits static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=929ffa4ade6ccc0059368ff55ca7b866b178ca47;p=linux.git serial: stm32: Make stm32_get_databits static Fix sparse warning: drivers/tty/serial/stm32-usart.c:603:14: warning: symbol 'stm32_get_databits' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 04eda75d671cb..4c217fb35bcb0 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -600,7 +600,7 @@ static void stm32_shutdown(struct uart_port *port) free_irq(port->irq, port); } -unsigned int stm32_get_databits(struct ktermios *termios) +static unsigned int stm32_get_databits(struct ktermios *termios) { unsigned int bits;