diff options
author | YueHaibing | 2019-05-28 17:04:49 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-06-10 18:47:52 +0200 |
commit | 929ffa4ade6ccc0059368ff55ca7b866b178ca47 (patch) | |
tree | d530cf757823209b8d3e167577c1f6bea7b26df5 | |
parent | c70669ecef4e34af8913108fae4b8a9b1dc63fa1 (diff) |
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>
-rw-r--r-- | drivers/tty/serial/stm32-usart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 04eda75d671c..4c217fb35bcb 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; |