Skip to content

Commit

Permalink
serial: stm32: Make stm32_get_databits static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Greg Kroah-Hartman committed Jun 10, 2019
1 parent c70669e commit 929ffa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/stm32-usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 929ffa4

Please sign in to comment.