Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

YueHaibing and committed by
Greg Kroah-Hartman
929ffa4a c70669ec

+1 -1
+1 -1
drivers/tty/serial/stm32-usart.c
··· 600 600 free_irq(port->irq, port); 601 601 } 602 602 603 - unsigned int stm32_get_databits(struct ktermios *termios) 603 + static unsigned int stm32_get_databits(struct ktermios *termios) 604 604 { 605 605 unsigned int bits; 606 606