summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/sunplus-uart.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2022-04-21 18:25:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-22 17:21:33 +0300
commitb68f42d4c99704e06c6f163af077b1bf4671f0bc (patch)
treef4b9048c8eaf22ad9de4e572f1efb1119d041460 /drivers/tty/serial/sunplus-uart.c
parent9b92cc5ee2d10e6c4d327d1e4ceb77aa8b1081ee (diff)
downloadlinux-b68f42d4c99704e06c6f163af077b1bf4671f0bc.tar.xz
serial: sunplus-uart: change sunplus_console_ports from global to static
Smatch reports this issue sunplus-uart.c:501:26: warning: symbol 'sunplus_console_ports' was not declared. Should it be static? sunplus_console_ports is only used in sunplus-uart.c so change its storage-class specifier to static Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20220421152505.1531507-1-trix@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sunplus-uart.c')
-rw-r--r--drivers/tty/serial/sunplus-uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sunplus-uart.c b/drivers/tty/serial/sunplus-uart.c
index 9f15922e681b..60c73662f955 100644
--- a/drivers/tty/serial/sunplus-uart.c
+++ b/drivers/tty/serial/sunplus-uart.c
@@ -498,7 +498,7 @@ static const struct uart_ops sunplus_uart_ops = {
};
#ifdef CONFIG_SERIAL_SUNPLUS_CONSOLE
-struct sunplus_uart_port *sunplus_console_ports[SUP_UART_NR];
+static struct sunplus_uart_port *sunplus_console_ports[SUP_UART_NR];
static void sunplus_uart_console_putchar(struct uart_port *port,
unsigned char ch)