* [PATCH 10/10] serial: sirf: Staticize local symbols
@ 2013-08-08 8:41 Jingoo Han
2013-08-12 2:07 ` Barry Song
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-08-08 8:41 UTC (permalink / raw)
To: 'Greg Kroah-Hartman'
Cc: 'Jiri Slaby', linux-serial, Barry Song, Jingoo Han
>From 0170294084877d365fbd1b369cd4dedfc3749ee5 Mon Sep 17 00:00:00 2001
From: Jingoo Han <jg1.han@samsung.com>
Date: Thu, 8 Aug 2013 17:24:38 +0900
Subject: [PATCH 10/10] serial: sirf: Staticize local symbols
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>
---
drivers/tty/serial/sirfsoc_uart.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c
index 67a0d1b..3b38137 100644
--- a/drivers/tty/serial/sirfsoc_uart.c
+++ b/drivers/tty/serial/sirfsoc_uart.c
@@ -144,7 +144,7 @@ static void sirfsoc_uart_stop_tx(struct uart_port *port)
wr_regl(port, SIRFUART_INT_EN, regv & ~SIRFUART_TX_INT_EN);
}
-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);
unsigned long regv;
@@ -633,7 +633,7 @@ static struct uart_driver sirfsoc_uart_drv = {
#endif
};
-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;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 10/10] serial: sirf: Staticize local symbols
2013-08-08 8:41 [PATCH 10/10] serial: sirf: Staticize local symbols Jingoo Han
@ 2013-08-12 2:07 ` Barry Song
0 siblings, 0 replies; 2+ messages in thread
From: Barry Song @ 2013-08-12 2:07 UTC (permalink / raw)
To: Jingoo Han
Cc: Greg Kroah-Hartman, Jiri Slaby, linux-serial, Barry Song,
DL-SHA-WorkGroupLinux
2013/8/8 Jingoo Han <jg1.han@samsung.com>:
> From 0170294084877d365fbd1b369cd4dedfc3749ee5 Mon Sep 17 00:00:00 2001
> From: Jingoo Han <jg1.han@samsung.com>
> Date: Thu, 8 Aug 2013 17:24:38 +0900
> Subject: [PATCH 10/10] serial: sirf: Staticize local symbols
>
> 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>
> drivers/tty/serial/sirfsoc_uart.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c
> index 67a0d1b..3b38137 100644
> --- a/drivers/tty/serial/sirfsoc_uart.c
> +++ b/drivers/tty/serial/sirfsoc_uart.c
> @@ -144,7 +144,7 @@ static void sirfsoc_uart_stop_tx(struct uart_port *port)
> wr_regl(port, SIRFUART_INT_EN, regv & ~SIRFUART_TX_INT_EN);
> }
>
> -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);
> unsigned long regv;
> @@ -633,7 +633,7 @@ static struct uart_driver sirfsoc_uart_drv = {
> #endif
> };
>
> -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;
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-12 2:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08 8:41 [PATCH 10/10] serial: sirf: Staticize local symbols Jingoo Han
2013-08-12 2:07 ` Barry Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox