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

serial: timbuart: Staticize local symbols

These local symbols are used only in this file.
Fix the following sparse warnings:

drivers/tty/serial/timbuart.c:165:6: warning: symbol 'timbuart_handle_rx_port' was not declared. Should it be static?
drivers/tty/serial/timbuart.c:187:6: warning: symbol 'timbuart_tasklet' was not declared. Should it be static?

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
edd173da 6602769b

+2 -2
+2 -2
drivers/tty/serial/timbuart.c
··· 162 162 dev_dbg(port->dev, "%s - leaving\n", __func__); 163 163 } 164 164 165 - void timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) 165 + static void timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) 166 166 { 167 167 if (isr & RXFLAGS) { 168 168 /* Some RX status is set */ ··· 184 184 dev_dbg(port->dev, "%s - leaving\n", __func__); 185 185 } 186 186 187 - void timbuart_tasklet(unsigned long arg) 187 + static void timbuart_tasklet(unsigned long arg) 188 188 { 189 189 struct timbuart_port *uart = (struct timbuart_port *)arg; 190 190 u32 isr, ier = 0;