diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-08-08 11:56:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-08 19:09:23 -0400 |
commit | 7acb88af6fedc4424a99425308a2f3e50d5ff1bc (patch) | |
tree | 7fe0ba93b6870239d90799cef386faf0f49cbc23 | |
parent | 4bb2bd0798447c67d563311f337db9c2f390f2c6 (diff) |
drivers/tty/nozomi.c: Use 'nozomi_setup_memory' instead of 'setup_memory'
Several architectures (e.g. microblaze, um, and score) have already have
extern 'setup_memory', so need use 'nozomi_setup_memory' instead of, or
will cause compiling issue.
The related error (with allmodconfig for microblaze):
CC [M] drivers/tty/nozomi.o
drivers/tty/nozomi.c:526:13: error: conflicting types for 'setup_memory'
static void setup_memory(struct nozomi *dc)
^
In file included from include/linux/mm.h:51:0,
from ./arch/microblaze/include/asm/io.h:17,
from include/linux/io.h:22,
from include/linux/pci.h:31,
from drivers/tty/nozomi.c:46:
./arch/microblaze/include/asm/pgtable.h:569:6: note: previous declaration of 'setup_memory' was here
void setup_memory(void);
^
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/nozomi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index cd0429369557..74885af8c7bd 100644 --- a/drivers/tty/nozomi.c +++ b/drivers/tty/nozomi.c | |||
@@ -523,7 +523,7 @@ static u32 write_mem32(void __iomem *mem_addr_start, const u32 *buf, | |||
523 | } | 523 | } |
524 | 524 | ||
525 | /* Setup pointers to different channels and also setup buffer sizes. */ | 525 | /* Setup pointers to different channels and also setup buffer sizes. */ |
526 | static void setup_memory(struct nozomi *dc) | 526 | static void nozomi_setup_memory(struct nozomi *dc) |
527 | { | 527 | { |
528 | void __iomem *offset = dc->base_addr + dc->config_table.dl_start; | 528 | void __iomem *offset = dc->base_addr + dc->config_table.dl_start; |
529 | /* The length reported is including the length field of 4 bytes, | 529 | /* The length reported is including the length field of 4 bytes, |
@@ -671,7 +671,7 @@ static int nozomi_read_config_table(struct nozomi *dc) | |||
671 | int i; | 671 | int i; |
672 | DBG1("Second phase, configuring card"); | 672 | DBG1("Second phase, configuring card"); |
673 | 673 | ||
674 | setup_memory(dc); | 674 | nozomi_setup_memory(dc); |
675 | 675 | ||
676 | dc->port[PORT_MDM].toggle_ul = dc->config_table.toggle.mdm_ul; | 676 | dc->port[PORT_MDM].toggle_ul = dc->config_table.toggle.mdm_ul; |
677 | dc->port[PORT_MDM].toggle_dl = dc->config_table.toggle.mdm_dl; | 677 | dc->port[PORT_MDM].toggle_dl = dc->config_table.toggle.mdm_dl; |
@@ -705,7 +705,7 @@ static int nozomi_read_config_table(struct nozomi *dc) | |||
705 | dc->config_table.version); | 705 | dc->config_table.version); |
706 | 706 | ||
707 | /* Here we should disable all I/O over F32. */ | 707 | /* Here we should disable all I/O over F32. */ |
708 | setup_memory(dc); | 708 | nozomi_setup_memory(dc); |
709 | 709 | ||
710 | /* | 710 | /* |
711 | * We should send ALL channel pair tokens back along | 711 | * We should send ALL channel pair tokens back along |