diff options
| author | Kim Phillips <kim.phillips@freescale.com> | 2012-10-16 14:28:48 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2012-10-25 12:06:21 -0700 | 
| commit | d07e7f9b3d62a17f60f40638e942406b03d977c3 (patch) | |
| tree | 75d49c6a3b0cb5ca406cacaf4c4359615f60925a | |
| parent | 62f730fffdd2b6e354773fdcb4b4c01262153319 (diff) | |
| download | olio-uboot-2014.01-d07e7f9b3d62a17f60f40638e942406b03d977c3.tar.xz olio-uboot-2014.01-d07e7f9b3d62a17f60f40638e942406b03d977c3.zip | |
drivers/serial/serial_ns16550.c: sparse fixes
serial_ns16550.c:222:1: warning: symbol 'eserial1_init' was not declared. Should it be static?
serial_ns16550.c:222:1: warning: symbol 'eserial1_setbrg' was not declared. Should it be static?
serial_ns16550.c:222:1: warning: symbol 'eserial1_getc' was not declared. Should it be static?
serial_ns16550.c:222:1: warning: symbol 'eserial1_tstc' was not declared. Should it be static?
serial_ns16550.c:222:1: warning: symbol 'eserial1_putc' was not declared. Should it be static?
serial_ns16550.c:222:1: warning: symbol 'eserial1_puts' was not declared. Should it be static?
serial_ns16550.c:225:1: warning: symbol 'eserial2_init' was not declared. Should it be static?
serial_ns16550.c:225:1: warning: symbol 'eserial2_setbrg' was not declared. Should it be static?
serial_ns16550.c:225:1: warning: symbol 'eserial2_getc' was not declared. Should it be static?
serial_ns16550.c:225:1: warning: symbol 'eserial2_tstc' was not declared. Should it be static?
serial_ns16550.c:225:1: warning: symbol 'eserial2_putc' was not declared. Should it be static?
serial_ns16550.c:225:1: warning: symbol 'eserial2_puts' was not declared. Should it be static?
serial_ns16550.c:228:1: warning: symbol 'eserial3_init' was not declared. Should it be static?
serial_ns16550.c:228:1: warning: symbol 'eserial3_setbrg' was not declared. Should it be static?
serial_ns16550.c:228:1: warning: symbol 'eserial3_getc' was not declared. Should it be static?
serial_ns16550.c:228:1: warning: symbol 'eserial3_tstc' was not declared. Should it be static?
serial_ns16550.c:228:1: warning: symbol 'eserial3_putc' was not declared. Should it be static?
serial_ns16550.c:228:1: warning: symbol 'eserial3_puts' was not declared. Should it be static?
serial_ns16550.c:231:1: warning: symbol 'eserial4_init' was not declared. Should it be static?
serial_ns16550.c:231:1: warning: symbol 'eserial4_setbrg' was not declared. Should it be static?
serial_ns16550.c:231:1: warning: symbol 'eserial4_getc' was not declared. Should it be static?
serial_ns16550.c:231:1: warning: symbol 'eserial4_tstc' was not declared. Should it be static?
serial_ns16550.c:231:1: warning: symbol 'eserial4_putc' was not declared. Should it be static?
serial_ns16550.c:231:1: warning: symbol 'eserial4_puts' was not declared. Should it be static?
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
| -rw-r--r-- | drivers/serial/serial_ns16550.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index b5d12481c..4176e257e 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drivers/serial/serial_ns16550.c @@ -78,20 +78,20 @@ static NS16550_t serial_ports[4] = {  /* Multi serial device functions */  #define DECLARE_ESERIAL_FUNCTIONS(port) \ -    int  eserial##port##_init (void) {\ +    static int  eserial##port##_init (void) {\  	int clock_divisor; \  	clock_divisor = calc_divisor(serial_ports[port-1]); \  	NS16550_init(serial_ports[port-1], clock_divisor); \  	return(0);}\ -    void eserial##port##_setbrg (void) {\ +    static void eserial##port##_setbrg (void) {\  	serial_setbrg_dev(port);}\ -    int  eserial##port##_getc (void) {\ +    static int  eserial##port##_getc (void) {\  	return serial_getc_dev(port);}\ -    int  eserial##port##_tstc (void) {\ +    static int  eserial##port##_tstc (void) {\  	return serial_tstc_dev(port);}\ -    void eserial##port##_putc (const char c) {\ +    static void eserial##port##_putc (const char c) {\  	serial_putc_dev(port, c);}\ -    void eserial##port##_puts (const char *s) {\ +    static void eserial##port##_puts (const char *s) {\  	serial_puts_dev(port, s);}  /* Serial device descriptor */ |