summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorYueHaibing2019-05-28 11:04:49 +0200
committerGreg Kroah-Hartman2019-06-10 18:47:52 +0200
commit929ffa4ade6ccc0059368ff55ca7b866b178ca47 (patch)
treed530cf757823209b8d3e167577c1f6bea7b26df5 /drivers/tty
parentserial: stm32: select pinctrl state in each suspend/resume function (diff)
downloadkernel-qcow2-linux-929ffa4ade6ccc0059368ff55ca7b866b178ca47.tar.gz
kernel-qcow2-linux-929ffa4ade6ccc0059368ff55ca7b866b178ca47.tar.xz
kernel-qcow2-linux-929ffa4ade6ccc0059368ff55ca7b866b178ca47.zip
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/stm32-usart.c2
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;