summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-09-12 06:38:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-16 14:14:58 +0300
commit4be002f1dec8418d88bbc556a0dfbaa9adc38ab0 (patch)
treef1d9bc77d8ba916fabf0fae09ebd16966bd52ae7 /drivers/tty/serial
parent57cee071311800c59bb8735f24d83c95701dc04f (diff)
downloadlinux-4be002f1dec8418d88bbc556a0dfbaa9adc38ab0.tar.xz
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>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/ucc_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/ucc_uart.c b/drivers/tty/serial/ucc_uart.c
index 3c8c662c69e2..d6a8604157ab 100644
--- a/drivers/tty/serial/ucc_uart.c
+++ b/drivers/tty/serial/ucc_uart.c
@@ -283,7 +283,7 @@ static unsigned int qe_uart_tx_empty(struct uart_port *port)
* don't need that support. This function must exist, however, otherwise
* the kernel will panic.
*/
-void qe_uart_set_mctrl(struct uart_port *port, unsigned int mctrl)
+static void qe_uart_set_mctrl(struct uart_port *port, unsigned int mctrl)
{
}