serial: pxa: Staticize local symbols
PATCH 8/10 serial: pxa: Staticize local symbols
Quoted 1 line
From
954e4e864408be296bad2488fb133c2ea163f90fMon Sep 17 00:00:00 2001
From: Jingoo Han <[email protected]>
Date: Thu, 8 Aug 2013 17:15:08 +0900
Subject: [PATCH 08/10] serial: pxa: Staticize local symbols
These local symbols are used only in this file.
Fix the following sparse warnings:
drivers/tty/serial/pxa.c:793:17: warning: symbol 'serial_pxa_pops' was not declared. Should it be static? drivers/tty/serial/pxa.c:971:12: warning: symbol 'serial_pxa_init' was not declared. Should it be static? drivers/tty/serial/pxa.c:986:13: warning: symbol 'serial_pxa_exit' was not declared. Should it be static?
--- drivers/tty/serial/pxa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/tty/serial/pxa.c +3 -3
@@ -790,7 +790,7 @@ static struct console serial_pxa_console = {#define PXA_CONSOLE NULL#endif -struct uart_ops serial_pxa_pops = { +static struct uart_ops serial_pxa_pops = { .tx_empty = serial_pxa_tx_empty, .set_mctrl = serial_pxa_set_mctrl, .get_mctrl = serial_pxa_get_mctrl,
@@ -968,7 +968,7 @@ static struct platform_driver serial_pxa_driver = { }, }; -int __init serial_pxa_init (void ) +static int __init serial_pxa_init (void ) {int ret;
@@ -983,7 +983,7 @@ int __init serial_pxa_init(void)return ret; } -void __exit serial_pxa_exit(void) +static void __exit serial_pxa_exit(void) {platform_driver_unregister (&serial_pxa_driver);uart_unregister_driver (&serial_pxa_reg);
Signature · 1 line
1.7.10.4
'Greg Kroah-Hartman'
maintainerQuoted 4 lines · Jingoo Han
Quoted 1 line
From
954e4e864408be296bad2488fb133c2ea163f90fMon Sep 17 00:00:00 2001From: Jingoo Han <[email protected]>
Date: Thu, 8 Aug 2013 17:15:08 +0900
Subject: [PATCH 08/10] serial: pxa: Staticize local symbols
Why include this in the message body again? Please use 'git send-email' to prevent stuff like this from happening, forcing me to edit the patch by hand :(
greg k-h