Skip to content
Snippets Groups Projects
Commit 49a89efb authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Fix "no space between function name and open parenthesis" warnings.


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 10cc3529
No related branches found
No related tags found
No related merge requests found
Showing
with 61 additions and 61 deletions
...@@ -184,7 +184,7 @@ static dbdev_tab_t dbdev_tab[] = { ...@@ -184,7 +184,7 @@ static dbdev_tab_t dbdev_tab[] = {
static chan_tab_t *chan_tab_ptr[NUM_DBDMA_CHANS]; static chan_tab_t *chan_tab_ptr[NUM_DBDMA_CHANS];
static dbdev_tab_t * static dbdev_tab_t *
find_dbdev_id (u32 id) find_dbdev_id(u32 id)
{ {
int i; int i;
dbdev_tab_t *p; dbdev_tab_t *p;
......
...@@ -42,7 +42,7 @@ extern void (*flush_cache_all)(void); ...@@ -42,7 +42,7 @@ extern void (*flush_cache_all)(void);
void au1000_restart(char *command) void au1000_restart(char *command)
{ {
/* Set all integrated peripherals to disabled states */ /* Set all integrated peripherals to disabled states */
extern void board_reset (void); extern void board_reset(void);
u32 prid = read_c0_prid(); u32 prid = read_c0_prid();
printk(KERN_NOTICE "\n** Resetting Integrated Peripherals\n"); printk(KERN_NOTICE "\n** Resetting Integrated Peripherals\n");
......
...@@ -200,7 +200,7 @@ unsigned long cal_r4koff(void) ...@@ -200,7 +200,7 @@ unsigned long cal_r4koff(void)
while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T1S); while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T1S);
while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S); while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S);
au_writel (0, SYS_TOYWRITE); au_writel(0, SYS_TOYWRITE);
while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S); while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S);
cpu_speed = (au_readl(SYS_CPUPLL) & 0x0000003f) * cpu_speed = (au_readl(SYS_CPUPLL) & 0x0000003f) *
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR; static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
void board_reset (void) void board_reset(void)
{ {
/* Hit BCSR.SYSTEM_CONTROL[SW_RST] */ /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
bcsr->swreset = 0x0000; bcsr->swreset = 0x0000;
......
...@@ -60,11 +60,11 @@ void __init prom_init(void) ...@@ -60,11 +60,11 @@ void __init prom_init(void)
prom_envp = (char **) fw_arg2; prom_envp = (char **) fw_arg2;
/* Set the platform # */ /* Set the platform # */
#if defined (CONFIG_MIPS_DB1550) #if defined(CONFIG_MIPS_DB1550)
mips_machtype = MACH_DB1550; mips_machtype = MACH_DB1550;
#elif defined (CONFIG_MIPS_DB1500) #elif defined(CONFIG_MIPS_DB1500)
mips_machtype = MACH_DB1500; mips_machtype = MACH_DB1500;
#elif defined (CONFIG_MIPS_DB1100) #elif defined(CONFIG_MIPS_DB1100)
mips_machtype = MACH_DB1100; mips_machtype = MACH_DB1100;
#else #else
mips_machtype = MACH_DB1000; mips_machtype = MACH_DB1000;
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
extern int (*board_pci_idsel)(unsigned int devsel, int assert); extern int (*board_pci_idsel)(unsigned int devsel, int assert);
int mtx1_pci_idsel(unsigned int devsel, int assert); int mtx1_pci_idsel(unsigned int devsel, int assert);
void board_reset (void) void board_reset(void)
{ {
/* Hit BCSR.SYSTEM_CONTROL[SW_RST] */ /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
au_writel(0x00000000, 0xAE00001C); au_writel(0x00000000, 0xAE00001C);
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1000.h>
#include <asm/mach-pb1x00/pb1000.h> #include <asm/mach-pb1x00/pb1000.h>
void board_reset (void) void board_reset(void)
{ {
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1000.h>
#include <asm/mach-pb1x00/pb1100.h> #include <asm/mach-pb1x00/pb1100.h>
void board_reset (void) void board_reset(void)
{ {
/* Hit BCSR.SYSTEM_CONTROL[SW_RST] */ /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
au_writel(0x00000000, 0xAE00001C); au_writel(0x00000000, 0xAE00001C);
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
extern void _board_init_irq(void); extern void _board_init_irq(void);
extern void (*board_init_irq)(void); extern void (*board_init_irq)(void);
void board_reset (void) void board_reset(void)
{ {
bcsr->resets = 0; bcsr->resets = 0;
bcsr->system = 0; bcsr->system = 0;
...@@ -148,7 +148,7 @@ void __init board_setup(void) ...@@ -148,7 +148,7 @@ void __init board_setup(void)
} }
int int
board_au1200fb_panel (void) board_au1200fb_panel(void)
{ {
BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR; BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR;
int p; int p;
...@@ -160,7 +160,7 @@ board_au1200fb_panel (void) ...@@ -160,7 +160,7 @@ board_au1200fb_panel (void)
} }
int int
board_au1200fb_panel_init (void) board_au1200fb_panel_init(void)
{ {
/* Apply power */ /* Apply power */
BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR; BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR;
...@@ -170,7 +170,7 @@ board_au1200fb_panel_init (void) ...@@ -170,7 +170,7 @@ board_au1200fb_panel_init (void)
} }
int int
board_au1200fb_panel_shutdown (void) board_au1200fb_panel_shutdown(void)
{ {
/* Remove power */ /* Remove power */
BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR; BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR;
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1000.h>
#include <asm/mach-pb1x00/pb1500.h> #include <asm/mach-pb1x00/pb1500.h>
void board_reset (void) void board_reset(void)
{ {
/* Hit BCSR.SYSTEM_CONTROL[SW_RST] */ /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
au_writel(0x00000000, 0xAE00001C); au_writel(0x00000000, 0xAE00001C);
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1000.h>
#include <asm/mach-pb1x00/pb1550.h> #include <asm/mach-pb1x00/pb1550.h>
void board_reset (void) void board_reset(void)
{ {
/* Hit BCSR.SYSTEM_CONTROL[SW_RST] */ /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
au_writew(au_readw(0xAF00001C) & ~(1<<15), 0xAF00001C); au_writew(au_readw(0xAF00001C) & ~(1<<15), 0xAF00001C);
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/au1000.h> #include <asm/au1000.h>
void board_reset (void) void board_reset(void)
{ {
/* Hit BCSR.SYSTEM_CONTROL[SW_RST] */ /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
au_writel(0x00000000, 0xAE00001C); au_writel(0x00000000, 0xAE00001C);
......
...@@ -216,7 +216,7 @@ static int __init excite_platform_init(void) ...@@ -216,7 +216,7 @@ static int __init excite_platform_init(void)
titan_writel(0x80021dff, GXCFG); /* XDMA reset */ titan_writel(0x80021dff, GXCFG); /* XDMA reset */
titan_writel(0x00000000, CPXCISRA); titan_writel(0x00000000, CPXCISRA);
titan_writel(0x00000000, CPXCISRB); /* clear pending interrupts */ titan_writel(0x00000000, CPXCISRB); /* clear pending interrupts */
#if defined (CONFIG_HIGHMEM) #if defined(CONFIG_HIGHMEM)
# error change for HIGHMEM support! # error change for HIGHMEM support!
#else #else
titan_writel(0x00000000, GXDMADRPFX); /* buffer address prefix */ titan_writel(0x00000000, GXDMADRPFX); /* buffer address prefix */
...@@ -262,12 +262,12 @@ void __init plat_mem_setup(void) ...@@ -262,12 +262,12 @@ void __init plat_mem_setup(void)
add_memory_region(0x00000000, memsize, BOOT_MEM_RAM); add_memory_region(0x00000000, memsize, BOOT_MEM_RAM);
/* Set up the peripheral address map */ /* Set up the peripheral address map */
*(boot_ocd_base + (LKB9 / sizeof (u32))) = 0; *(boot_ocd_base + (LKB9 / sizeof(u32))) = 0;
*(boot_ocd_base + (LKB10 / sizeof (u32))) = 0; *(boot_ocd_base + (LKB10 / sizeof(u32))) = 0;
*(boot_ocd_base + (LKB11 / sizeof (u32))) = 0; *(boot_ocd_base + (LKB11 / sizeof(u32))) = 0;
*(boot_ocd_base + (LKB12 / sizeof (u32))) = 0; *(boot_ocd_base + (LKB12 / sizeof(u32))) = 0;
wmb(); wmb();
*(boot_ocd_base + (LKB0 / sizeof (u32))) = EXCITE_PHYS_OCD >> 4; *(boot_ocd_base + (LKB0 / sizeof(u32))) = EXCITE_PHYS_OCD >> 4;
wmb(); wmb();
ocd_writel((EXCITE_PHYS_TITAN >> 4) | 0x1UL, LKB5); ocd_writel((EXCITE_PHYS_TITAN >> 4) | 0x1UL, LKB5);
......
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
#define SWAB(a) (swab ? swab32(a) : (a)) #define SWAB(a) (swab ? swab32(a) : (a))
void die (char *s) void die(char *s)
{ {
perror (s); perror(s);
exit (1); exit(1);
} }
int main (int argc, char *argv[]) int main(int argc, char *argv[])
{ {
int fd_vmlinux,fd_initrd,fd_outfile; int fd_vmlinux,fd_initrd,fd_outfile;
FILHDR efile; FILHDR efile;
...@@ -52,18 +52,18 @@ int main (int argc, char *argv[]) ...@@ -52,18 +52,18 @@ int main (int argc, char *argv[])
int swab = 0; int swab = 0;
if (argc != 4) { if (argc != 4) {
printf ("Usage: %s <vmlinux> <initrd> <outfile>\n",argv[0]); printf("Usage: %s <vmlinux> <initrd> <outfile>\n",argv[0]);
exit (1); exit(1);
} }
if ((fd_vmlinux = open (argv[1],O_RDONLY)) < 0) if ((fd_vmlinux = open (argv[1],O_RDONLY)) < 0)
die ("open vmlinux"); die("open vmlinux");
if (read (fd_vmlinux, &efile, sizeof efile) != sizeof efile) if (read (fd_vmlinux, &efile, sizeof efile) != sizeof efile)
die ("read file header"); die("read file header");
if (read (fd_vmlinux, &eaout, sizeof eaout) != sizeof eaout) if (read (fd_vmlinux, &eaout, sizeof eaout) != sizeof eaout)
die ("read aout header"); die("read aout header");
if (read (fd_vmlinux, esecs, sizeof esecs) != sizeof esecs) if (read (fd_vmlinux, esecs, sizeof esecs) != sizeof esecs)
die ("read section headers"); die("read section headers");
/* /*
* check whether the file is good for us * check whether the file is good for us
*/ */
...@@ -82,13 +82,13 @@ int main (int argc, char *argv[]) ...@@ -82,13 +82,13 @@ int main (int argc, char *argv[])
/* make sure we have an empty data segment for the initrd */ /* make sure we have an empty data segment for the initrd */
if (eaout.dsize || esecs[1].s_size) { if (eaout.dsize || esecs[1].s_size) {
fprintf (stderr, "Data segment not empty. Giving up!\n"); fprintf(stderr, "Data segment not empty. Giving up!\n");
exit (1); exit(1);
} }
if ((fd_initrd = open (argv[2], O_RDONLY)) < 0) if ((fd_initrd = open (argv[2], O_RDONLY)) < 0)
die ("open initrd"); die("open initrd");
if (fstat (fd_initrd, &st) < 0) if (fstat (fd_initrd, &st) < 0)
die ("fstat initrd"); die("fstat initrd");
loadaddr = ((SWAB(esecs[2].s_vaddr) + SWAB(esecs[2].s_size) loadaddr = ((SWAB(esecs[2].s_vaddr) + SWAB(esecs[2].s_size)
+ MIPS_PAGE_SIZE-1) & ~MIPS_PAGE_MASK) - 8; + MIPS_PAGE_SIZE-1) & ~MIPS_PAGE_MASK) - 8;
if (loadaddr < (SWAB(esecs[2].s_vaddr) + SWAB(esecs[2].s_size))) if (loadaddr < (SWAB(esecs[2].s_vaddr) + SWAB(esecs[2].s_size)))
...@@ -99,33 +99,33 @@ int main (int argc, char *argv[]) ...@@ -99,33 +99,33 @@ int main (int argc, char *argv[])
eaout.data_start = esecs[1].s_vaddr = esecs[1].s_paddr = SWAB(loadaddr); eaout.data_start = esecs[1].s_vaddr = esecs[1].s_paddr = SWAB(loadaddr);
if ((fd_outfile = open (argv[3], O_RDWR|O_CREAT|O_TRUNC,0666)) < 0) if ((fd_outfile = open (argv[3], O_RDWR|O_CREAT|O_TRUNC,0666)) < 0)
die ("open outfile"); die("open outfile");
if (write (fd_outfile, &efile, sizeof efile) != sizeof efile) if (write (fd_outfile, &efile, sizeof efile) != sizeof efile)
die ("write file header"); die("write file header");
if (write (fd_outfile, &eaout, sizeof eaout) != sizeof eaout) if (write (fd_outfile, &eaout, sizeof eaout) != sizeof eaout)
die ("write aout header"); die("write aout header");
if (write (fd_outfile, esecs, sizeof esecs) != sizeof esecs) if (write (fd_outfile, esecs, sizeof esecs) != sizeof esecs)
die ("write section headers"); die("write section headers");
/* skip padding */ /* skip padding */
if(lseek(fd_vmlinux, SWAB(esecs[0].s_scnptr), SEEK_SET) == (off_t)-1) if(lseek(fd_vmlinux, SWAB(esecs[0].s_scnptr), SEEK_SET) == (off_t)-1)
die ("lseek vmlinux"); die("lseek vmlinux");
if(lseek(fd_outfile, SWAB(esecs[0].s_scnptr), SEEK_SET) == (off_t)-1) if(lseek(fd_outfile, SWAB(esecs[0].s_scnptr), SEEK_SET) == (off_t)-1)
die ("lseek outfile"); die("lseek outfile");
/* copy text segment */ /* copy text segment */
cnt = SWAB(eaout.tsize); cnt = SWAB(eaout.tsize);
while (cnt) { while (cnt) {
if ((i = read (fd_vmlinux, buf, sizeof buf)) <= 0) if ((i = read (fd_vmlinux, buf, sizeof buf)) <= 0)
die ("read vmlinux"); die("read vmlinux");
if (write (fd_outfile, buf, i) != i) if (write (fd_outfile, buf, i) != i)
die ("write vmlinux"); die("write vmlinux");
cnt -= i; cnt -= i;
} }
if (write (fd_outfile, initrd_header, sizeof initrd_header) != sizeof initrd_header) if (write (fd_outfile, initrd_header, sizeof initrd_header) != sizeof initrd_header)
die ("write initrd header"); die("write initrd header");
while ((i = read (fd_initrd, buf, sizeof buf)) > 0) while ((i = read (fd_initrd, buf, sizeof buf)) > 0)
if (write (fd_outfile, buf, i) != i) if (write (fd_outfile, buf, i) != i)
die ("write initrd"); die("write initrd");
close (fd_vmlinux); close(fd_vmlinux);
close (fd_initrd); close(fd_initrd);
return 0; return 0;
} }
...@@ -63,7 +63,7 @@ static char *arc_mtypes[8] = { ...@@ -63,7 +63,7 @@ static char *arc_mtypes[8] = {
: arc_mtypes[a.arc] : arc_mtypes[a.arc]
#endif #endif
static inline int memtype_classify_arcs (union linux_memtypes type) static inline int memtype_classify_arcs(union linux_memtypes type)
{ {
switch (type.arcs) { switch (type.arcs) {
case arcs_fcontig: case arcs_fcontig:
...@@ -83,7 +83,7 @@ static inline int memtype_classify_arcs (union linux_memtypes type) ...@@ -83,7 +83,7 @@ static inline int memtype_classify_arcs (union linux_memtypes type)
while(1); /* Nuke warning. */ while(1); /* Nuke warning. */
} }
static inline int memtype_classify_arc (union linux_memtypes type) static inline int memtype_classify_arc(union linux_memtypes type)
{ {
switch (type.arc) { switch (type.arc) {
case arc_free: case arc_free:
...@@ -103,7 +103,7 @@ static inline int memtype_classify_arc (union linux_memtypes type) ...@@ -103,7 +103,7 @@ static inline int memtype_classify_arc (union linux_memtypes type)
while(1); /* Nuke warning. */ while(1); /* Nuke warning. */
} }
static int __init prom_memtype_classify (union linux_memtypes type) static int __init prom_memtype_classify(union linux_memtypes type)
{ {
if (prom_flags & PROM_FLAG_ARCS) /* SGI is ``different'' ... */ if (prom_flags & PROM_FLAG_ARCS) /* SGI is ``different'' ... */
return memtype_classify_arcs(type); return memtype_classify_arcs(type);
......
...@@ -49,8 +49,8 @@ void jazz_machine_restart(char *command) ...@@ -49,8 +49,8 @@ void jazz_machine_restart(char *command)
{ {
while(1) { while(1) {
kb_wait(); kb_wait();
jazz_write_command (0xd1); jazz_write_command(0xd1);
kb_wait(); kb_wait();
jazz_write_output (0x00); jazz_write_output(0x00);
} }
} }
...@@ -74,11 +74,11 @@ void __init plat_mem_setup(void) ...@@ -74,11 +74,11 @@ void __init plat_mem_setup(void)
int i; int i;
/* Map 0xe0000000 -> 0x0:800005C0, 0xe0010000 -> 0x1:30000580 */ /* Map 0xe0000000 -> 0x0:800005C0, 0xe0010000 -> 0x1:30000580 */
add_wired_entry (0x02000017, 0x03c00017, 0xe0000000, PM_64K); add_wired_entry(0x02000017, 0x03c00017, 0xe0000000, PM_64K);
/* Map 0xe2000000 -> 0x0:900005C0, 0xe3010000 -> 0x0:910005C0 */ /* Map 0xe2000000 -> 0x0:900005C0, 0xe3010000 -> 0x0:910005C0 */
add_wired_entry (0x02400017, 0x02440017, 0xe2000000, PM_16M); add_wired_entry(0x02400017, 0x02440017, 0xe2000000, PM_16M);
/* Map 0xe4000000 -> 0x0:600005C0, 0xe4100000 -> 400005C0 */ /* Map 0xe4000000 -> 0x0:600005C0, 0xe4100000 -> 400005C0 */
add_wired_entry (0x01800017, 0x01000017, 0xe4000000, PM_4M); add_wired_entry(0x01800017, 0x01000017, 0xe4000000, PM_4M);
set_io_port_base(JAZZ_PORT_BASE); set_io_port_base(JAZZ_PORT_BASE);
#ifdef CONFIG_EISA #ifdef CONFIG_EISA
......
...@@ -29,7 +29,7 @@ static inline void align_mod(const int align, const int mod) ...@@ -29,7 +29,7 @@ static inline void align_mod(const int align, const int mod)
".endr\n\t" ".endr\n\t"
".set pop" ".set pop"
: :
: GCC_IMM_ASM (align), GCC_IMM_ASM (mod)); : GCC_IMM_ASM(align), GCC_IMM_ASM(mod));
} }
static inline void mult_sh_align_mod(long *v1, long *v2, long *w, static inline void mult_sh_align_mod(long *v1, long *v2, long *w,
......
...@@ -733,7 +733,7 @@ static int kgdb_smp_call_kgdb_wait(void) ...@@ -733,7 +733,7 @@ static int kgdb_smp_call_kgdb_wait(void)
* returns 1 if you should skip the instruction at the trap address, 0 * returns 1 if you should skip the instruction at the trap address, 0
* otherwise. * otherwise.
*/ */
void handle_exception (struct gdb_regs *regs) void handle_exception(struct gdb_regs *regs)
{ {
int trap; /* Trap type */ int trap; /* Trap type */
int sigval; int sigval;
...@@ -917,7 +917,7 @@ void handle_exception (struct gdb_regs *regs) ...@@ -917,7 +917,7 @@ void handle_exception (struct gdb_regs *regs)
&& hexToInt(&ptr, &length)) { && hexToInt(&ptr, &length)) {
if (mem2hex((char *)addr, output_buffer, length, 1)) if (mem2hex((char *)addr, output_buffer, length, 1))
break; break;
strcpy (output_buffer, "E03"); strcpy(output_buffer, "E03");
} else } else
strcpy(output_buffer,"E01"); strcpy(output_buffer,"E01");
break; break;
......
...@@ -329,7 +329,7 @@ static struct resource pic2_io_resource = { ...@@ -329,7 +329,7 @@ static struct resource pic2_io_resource = {
* driver compatibility reasons interrupts 0 - 15 to be the i8259 * driver compatibility reasons interrupts 0 - 15 to be the i8259
* interrupts even if the hardware uses a different interrupt numbering. * interrupts even if the hardware uses a different interrupt numbering.
*/ */
void __init init_i8259_irqs (void) void __init init_i8259_irqs(void)
{ {
int i; int i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment