diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-27 20:48:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 19:34:11 -0400 |
commit | 9baaa6747e84b078e42b1a6d17088049b5320167 (patch) | |
tree | 2f52a21cd1f12741d17200a970205e83fa8547e6 | |
parent | e5f9bf72efbcaaf7e909cd6b948e43878a27c4e5 (diff) |
serial: mfd: Staticize local symbols
These local symbols are used only in this file.
Fix the following sparse warnings:
drivers/tty/serial/mfd.c:296:6: warning: symbol 'hsu_dma_tx' was not declared. Should it be static?
drivers/tty/serial/mfd.c:343:6: warning: symbol 'hsu_dma_start_rx_chan' was not declared. Should it be static?
drivers/tty/serial/mfd.c:389:6: warning: symbol 'hsu_dma_rx' was not declared. Should it be static?
drivers/tty/serial/mfd.c:1186:17: warning: symbol 'serial_hsu_pops' 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>
-rw-r--r-- | drivers/tty/serial/mfd.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c index 503dcc77b2bd..52c930fac210 100644 --- a/drivers/tty/serial/mfd.c +++ b/drivers/tty/serial/mfd.c | |||
@@ -293,7 +293,7 @@ static void serial_hsu_enable_ms(struct uart_port *port) | |||
293 | serial_out(up, UART_IER, up->ier); | 293 | serial_out(up, UART_IER, up->ier); |
294 | } | 294 | } |
295 | 295 | ||
296 | void hsu_dma_tx(struct uart_hsu_port *up) | 296 | static void hsu_dma_tx(struct uart_hsu_port *up) |
297 | { | 297 | { |
298 | struct circ_buf *xmit = &up->port.state->xmit; | 298 | struct circ_buf *xmit = &up->port.state->xmit; |
299 | struct hsu_dma_buffer *dbuf = &up->txbuf; | 299 | struct hsu_dma_buffer *dbuf = &up->txbuf; |
@@ -340,7 +340,8 @@ void hsu_dma_tx(struct uart_hsu_port *up) | |||
340 | } | 340 | } |
341 | 341 | ||
342 | /* The buffer is already cache coherent */ | 342 | /* The buffer is already cache coherent */ |
343 | void hsu_dma_start_rx_chan(struct hsu_dma_chan *rxc, struct hsu_dma_buffer *dbuf) | 343 | static void hsu_dma_start_rx_chan(struct hsu_dma_chan *rxc, |
344 | struct hsu_dma_buffer *dbuf) | ||
344 | { | 345 | { |
345 | dbuf->ofs = 0; | 346 | dbuf->ofs = 0; |
346 | 347 | ||
@@ -386,7 +387,8 @@ static void serial_hsu_stop_tx(struct uart_port *port) | |||
386 | 387 | ||
387 | /* This is always called in spinlock protected mode, so | 388 | /* This is always called in spinlock protected mode, so |
388 | * modify timeout timer is safe here */ | 389 | * modify timeout timer is safe here */ |
389 | void hsu_dma_rx(struct uart_hsu_port *up, u32 int_sts, unsigned long *flags) | 390 | static void hsu_dma_rx(struct uart_hsu_port *up, u32 int_sts, |
391 | unsigned long *flags) | ||
390 | { | 392 | { |
391 | struct hsu_dma_buffer *dbuf = &up->rxbuf; | 393 | struct hsu_dma_buffer *dbuf = &up->rxbuf; |
392 | struct hsu_dma_chan *chan = up->rxc; | 394 | struct hsu_dma_chan *chan = up->rxc; |
@@ -1183,7 +1185,7 @@ static struct console serial_hsu_console = { | |||
1183 | #define SERIAL_HSU_CONSOLE NULL | 1185 | #define SERIAL_HSU_CONSOLE NULL |
1184 | #endif | 1186 | #endif |
1185 | 1187 | ||
1186 | struct uart_ops serial_hsu_pops = { | 1188 | static struct uart_ops serial_hsu_pops = { |
1187 | .tx_empty = serial_hsu_tx_empty, | 1189 | .tx_empty = serial_hsu_tx_empty, |
1188 | .set_mctrl = serial_hsu_set_mctrl, | 1190 | .set_mctrl = serial_hsu_set_mctrl, |
1189 | .get_mctrl = serial_hsu_get_mctrl, | 1191 | .get_mctrl = serial_hsu_get_mctrl, |