Commit 929ffa4a authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c70669ec
...@@ -600,7 +600,7 @@ static void stm32_shutdown(struct uart_port *port) ...@@ -600,7 +600,7 @@ static void stm32_shutdown(struct uart_port *port)
free_irq(port->irq, 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; unsigned int bits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment