Skip to content

Commit

Permalink
serial: sirf: Staticize local symbols
Browse files Browse the repository at this point in the history
These local symbols are used only in this file.
Fix the following sparse warnings:

drivers/tty/serial/sirfsoc_uart.c:147:6: warning: symbol 'sirfsoc_uart_start_tx' was not declared. Should it be static?
drivers/tty/serial/sirfsoc_uart.c:636:5: warning: symbol 'sirfsoc_uart_probe' was not declared. Should it be static?

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jingoo Han authored and Greg Kroah-Hartman committed Aug 12, 2013
1 parent 5df8311 commit ada1f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/serial/sirfsoc_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static void sirfsoc_uart_stop_tx(struct uart_port *port)

}

void sirfsoc_uart_start_tx(struct uart_port *port)
static void sirfsoc_uart_start_tx(struct uart_port *port)
{
struct sirfsoc_uart_port *sirfport = to_sirfport(port);
struct sirfsoc_register *ureg = &sirfport->uart_reg->uart_reg;
Expand Down Expand Up @@ -829,7 +829,7 @@ static struct of_device_id sirfsoc_uart_ids[] = {
};
MODULE_DEVICE_TABLE(of, sirfsoc_uart_ids);

int sirfsoc_uart_probe(struct platform_device *pdev)
static int sirfsoc_uart_probe(struct platform_device *pdev)
{
struct sirfsoc_uart_port *sirfport;
struct uart_port *port;
Expand Down

0 comments on commit ada1f44

Please sign in to comment.