2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 07:34:06 +08:00

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 <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
YueHaibing 2019-05-28 17:04:49 +08:00 committed by Greg Kroah-Hartman
parent c70669ecef
commit 929ffa4ade

View 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;