serial: stm32: Make stm32_get_databits static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 28 May 2019 09:04:49 +0000 (17:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 16:47:52 +0000 (18:47 +0200)
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 <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c

index 04eda75..4c217fb 100644 (file)
@@ -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;