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

serial: ucc_uart: make qe_uart_set_mctrl() static

This eliminates the following sparse warning:

drivers/tty/serial/ucc_uart.c:286:6: warning: symbol 'qe_uart_set_mctrl'
was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Acked-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20200912033834.143166-1-yanaijie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jason Yan and committed by
Greg Kroah-Hartman
4be002f1 57cee071

+1 -1
+1 -1
drivers/tty/serial/ucc_uart.c
··· 283 283 * don't need that support. This function must exist, however, otherwise 284 284 * the kernel will panic. 285 285 */ 286 - void qe_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) 286 + static void qe_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) 287 287 { 288 288 } 289 289