Commit 6cb79b3f authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

sparc: Remove unnecessary semicolons

Semicolons are not necessary after switch/while/for/if braces
so remove them.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9eeb0898
...@@ -138,7 +138,7 @@ static unsigned char sun_82072_fd_inb(int port) ...@@ -138,7 +138,7 @@ static unsigned char sun_82072_fd_inb(int port)
return sun_fdc->data_82072; return sun_fdc->data_82072;
case 7: /* FD_DIR */ case 7: /* FD_DIR */
return sun_read_dir(); return sun_read_dir();
}; }
panic("sun_82072_fd_inb: How did I get here?"); panic("sun_82072_fd_inb: How did I get here?");
} }
...@@ -161,7 +161,7 @@ static void sun_82072_fd_outb(unsigned char value, int port) ...@@ -161,7 +161,7 @@ static void sun_82072_fd_outb(unsigned char value, int port)
case 4: /* FD_STATUS */ case 4: /* FD_STATUS */
sun_fdc->status_82072 = value; sun_fdc->status_82072 = value;
break; break;
}; }
return; return;
} }
...@@ -186,7 +186,7 @@ static unsigned char sun_82077_fd_inb(int port) ...@@ -186,7 +186,7 @@ static unsigned char sun_82077_fd_inb(int port)
return sun_fdc->data_82077; return sun_fdc->data_82077;
case 7: /* FD_DIR */ case 7: /* FD_DIR */
return sun_read_dir(); return sun_read_dir();
}; }
panic("sun_82077_fd_inb: How did I get here?"); panic("sun_82077_fd_inb: How did I get here?");
} }
...@@ -212,7 +212,7 @@ static void sun_82077_fd_outb(unsigned char value, int port) ...@@ -212,7 +212,7 @@ static void sun_82077_fd_outb(unsigned char value, int port)
case 3: /* FD_TDR */ case 3: /* FD_TDR */
sun_fdc->tapectl_82077 = value; sun_fdc->tapectl_82077 = value;
break; break;
}; }
return; return;
} }
......
...@@ -111,7 +111,7 @@ static unsigned char sun_82077_fd_inb(unsigned long port) ...@@ -111,7 +111,7 @@ static unsigned char sun_82077_fd_inb(unsigned long port)
case 7: /* FD_DIR */ case 7: /* FD_DIR */
/* XXX: Is DCL on 0x80 in sun4m? */ /* XXX: Is DCL on 0x80 in sun4m? */
return sbus_readb(&sun_fdc->dir_82077); return sbus_readb(&sun_fdc->dir_82077);
}; }
panic("sun_82072_fd_inb: How did I get here?"); panic("sun_82072_fd_inb: How did I get here?");
} }
...@@ -135,7 +135,7 @@ static void sun_82077_fd_outb(unsigned char value, unsigned long port) ...@@ -135,7 +135,7 @@ static void sun_82077_fd_outb(unsigned char value, unsigned long port)
case 4: /* FD_STATUS */ case 4: /* FD_STATUS */
sbus_writeb(value, &sun_fdc->status_82077); sbus_writeb(value, &sun_fdc->status_82077);
break; break;
}; }
return; return;
} }
......
...@@ -220,7 +220,7 @@ static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int ...@@ -220,7 +220,7 @@ static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int
switch (size) { switch (size) {
case 4: case 4:
return xchg_u32(ptr, x); return xchg_u32(ptr, x);
}; }
__xchg_called_with_bad_pointer(); __xchg_called_with_bad_pointer();
return x; return x;
} }
......
...@@ -234,7 +234,7 @@ static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, ...@@ -234,7 +234,7 @@ static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr,
return xchg32(ptr, x); return xchg32(ptr, x);
case 8: case 8:
return xchg64(ptr, x); return xchg64(ptr, x);
}; }
__xchg_called_with_bad_pointer(); __xchg_called_with_bad_pointer();
return x; return x;
} }
......
...@@ -123,7 +123,7 @@ static long apc_ioctl(struct file *f, unsigned int cmd, unsigned long __arg) ...@@ -123,7 +123,7 @@ static long apc_ioctl(struct file *f, unsigned int cmd, unsigned long __arg)
default: default:
return -EINVAL; return -EINVAL;
}; }
return 0; return 0;
} }
......
...@@ -101,7 +101,7 @@ void set_auxio(unsigned char bits_on, unsigned char bits_off) ...@@ -101,7 +101,7 @@ void set_auxio(unsigned char bits_on, unsigned char bits_off)
break; break;
default: default:
panic("Can't set AUXIO register on this machine."); panic("Can't set AUXIO register on this machine.");
}; }
spin_unlock_irqrestore(&auxio_lock, flags); spin_unlock_irqrestore(&auxio_lock, flags);
} }
EXPORT_SYMBOL(set_auxio); EXPORT_SYMBOL(set_auxio);
......
...@@ -664,7 +664,7 @@ static void chmc_interpret_one_decode_reg(struct chmc *p, int which_bank, u64 va ...@@ -664,7 +664,7 @@ static void chmc_interpret_one_decode_reg(struct chmc *p, int which_bank, u64 va
case 0x0: case 0x0:
bp->interleave = 16; bp->interleave = 16;
break; break;
}; }
/* UK[10] is reserved, and UK[11] is not set for the SDRAM /* UK[10] is reserved, and UK[11] is not set for the SDRAM
* bank size definition. * bank size definition.
......
...@@ -214,7 +214,7 @@ int apply_relocate_add(Elf_Shdr *sechdrs, ...@@ -214,7 +214,7 @@ int apply_relocate_add(Elf_Shdr *sechdrs,
me->name, me->name,
(int) (ELF_R_TYPE(rel[i].r_info) & 0xff)); (int) (ELF_R_TYPE(rel[i].r_info) & 0xff));
return -ENOEXEC; return -ENOEXEC;
}; }
} }
return 0; return 0;
} }
......
...@@ -281,7 +281,7 @@ static int sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, ...@@ -281,7 +281,7 @@ static int sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn,
case 4: case 4:
*value = ret & 0xffffffff; *value = ret & 0xffffffff;
break; break;
}; }
return PCIBIOS_SUCCESSFUL; return PCIBIOS_SUCCESSFUL;
...@@ -456,7 +456,7 @@ void pci_determine_mem_io_space(struct pci_pbm_info *pbm) ...@@ -456,7 +456,7 @@ void pci_determine_mem_io_space(struct pci_pbm_info *pbm)
default: default:
break; break;
}; }
} }
if (!saw_io || !saw_mem) { if (!saw_io || !saw_mem) {
......
...@@ -264,7 +264,7 @@ static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm, ...@@ -264,7 +264,7 @@ static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm,
default: default:
type_string = "ECC Error"; type_string = "ECC Error";
break; break;
}; }
printk("%s: IOMMU Error, type[%s]\n", printk("%s: IOMMU Error, type[%s]\n",
pbm->name, type_string); pbm->name, type_string);
...@@ -319,7 +319,7 @@ static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm, ...@@ -319,7 +319,7 @@ static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm,
default: default:
type_string = "ECC Error"; type_string = "ECC Error";
break; break;
}; }
printk("%s: IOMMU TAG(%d)[error(%s) ctx(%x) wr(%d) str(%d) " printk("%s: IOMMU TAG(%d)[error(%s) ctx(%x) wr(%d) str(%d) "
"sz(%dK) vpg(%08lx)]\n", "sz(%dK) vpg(%08lx)]\n",
pbm->name, i, type_string, pbm->name, i, type_string,
...@@ -1328,7 +1328,7 @@ static int __devinit schizo_pbm_init(struct pci_pbm_info *pbm, ...@@ -1328,7 +1328,7 @@ static int __devinit schizo_pbm_init(struct pci_pbm_info *pbm,
default: default:
chipset_name = "SCHIZO"; chipset_name = "SCHIZO";
break; break;
}; }
/* For SCHIZO, three OBP regs: /* For SCHIZO, three OBP regs:
* 1) PBM controller regs * 1) PBM controller regs
......
...@@ -694,7 +694,7 @@ static unsigned int sbus_of_build_irq(struct device_node *dp, ...@@ -694,7 +694,7 @@ static unsigned int sbus_of_build_irq(struct device_node *dp,
case 3: case 3:
iclr = reg_base + SYSIO_ICLR_SLOT3; iclr = reg_base + SYSIO_ICLR_SLOT3;
break; break;
}; }
iclr += ((unsigned long)sbus_level - 1UL) * 8UL; iclr += ((unsigned long)sbus_level - 1UL) * 8UL;
} }
......
...@@ -228,7 +228,7 @@ void psycho_check_iommu_error(struct pci_pbm_info *pbm, ...@@ -228,7 +228,7 @@ void psycho_check_iommu_error(struct pci_pbm_info *pbm,
default: default:
type_str = "ECC Error"; type_str = "ECC Error";
break; break;
}; }
printk(KERN_ERR "%s: IOMMU Error, type[%s]\n", printk(KERN_ERR "%s: IOMMU Error, type[%s]\n",
pbm->name, type_str); pbm->name, type_str);
......
...@@ -97,7 +97,7 @@ void sbus_set_sbus64(struct device *dev, int bursts) ...@@ -97,7 +97,7 @@ void sbus_set_sbus64(struct device *dev, int bursts)
default: default:
return; return;
}; }
val = upa_readq(cfg_reg); val = upa_readq(cfg_reg);
if (val & (1UL << 14UL)) { if (val & (1UL << 14UL)) {
...@@ -244,7 +244,7 @@ static unsigned int sbus_build_irq(struct platform_device *op, unsigned int ino) ...@@ -244,7 +244,7 @@ static unsigned int sbus_build_irq(struct platform_device *op, unsigned int ino)
case 3: case 3:
iclr = reg_base + SYSIO_ICLR_SLOT3; iclr = reg_base + SYSIO_ICLR_SLOT3;
break; break;
}; }
iclr += ((unsigned long)sbus_level - 1UL) * 8UL; iclr += ((unsigned long)sbus_level - 1UL) * 8UL;
} }
......
...@@ -267,7 +267,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -267,7 +267,7 @@ void __init setup_arch(char **cmdline_p)
default: default:
printk("UNKNOWN!\n"); printk("UNKNOWN!\n");
break; break;
}; }
#ifdef CONFIG_DUMMY_CONSOLE #ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con; conswitchp = &dummy_con;
......
...@@ -209,7 +209,7 @@ void __init per_cpu_patch(void) ...@@ -209,7 +209,7 @@ void __init per_cpu_patch(void)
default: default:
prom_printf("Unknown cpu type, halting.\n"); prom_printf("Unknown cpu type, halting.\n");
prom_halt(); prom_halt();
}; }
*(unsigned int *) (addr + 0) = insns[0]; *(unsigned int *) (addr + 0) = insns[0];
wmb(); wmb();
......
...@@ -114,7 +114,7 @@ void __init smp_cpus_done(unsigned int max_cpus) ...@@ -114,7 +114,7 @@ void __init smp_cpus_done(unsigned int max_cpus)
printk("UNKNOWN!\n"); printk("UNKNOWN!\n");
BUG(); BUG();
break; break;
}; }
} }
void cpu_panic(void) void cpu_panic(void)
...@@ -374,7 +374,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) ...@@ -374,7 +374,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
printk("UNKNOWN!\n"); printk("UNKNOWN!\n");
BUG(); BUG();
break; break;
}; }
} }
/* Set this up early so that things like the scheduler can init /* Set this up early so that things like the scheduler can init
...@@ -447,7 +447,7 @@ int __cpuinit __cpu_up(unsigned int cpu) ...@@ -447,7 +447,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
printk("UNKNOWN!\n"); printk("UNKNOWN!\n");
BUG(); BUG();
break; break;
}; }
if (!ret) { if (!ret) {
cpumask_set_cpu(cpu, &smp_commenced_mask); cpumask_set_cpu(cpu, &smp_commenced_mask);
......
...@@ -109,7 +109,7 @@ asmlinkage long compat_sys_ipc(u32 call, u32 first, u32 second, u32 third, compa ...@@ -109,7 +109,7 @@ asmlinkage long compat_sys_ipc(u32 call, u32 first, u32 second, u32 third, compa
default: default:
return -ENOSYS; return -ENOSYS;
}; }
return -ENOSYS; return -ENOSYS;
} }
......
...@@ -460,7 +460,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second ...@@ -460,7 +460,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
default: default:
err = -ENOSYS; err = -ENOSYS;
goto out; goto out;
}; }
} }
if (call <= MSGCTL) { if (call <= MSGCTL) {
switch (call) { switch (call) {
...@@ -481,7 +481,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second ...@@ -481,7 +481,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
default: default:
err = -ENOSYS; err = -ENOSYS;
goto out; goto out;
}; }
} }
if (call <= SHMCTL) { if (call <= SHMCTL) {
switch (call) { switch (call) {
...@@ -507,7 +507,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second ...@@ -507,7 +507,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
default: default:
err = -ENOSYS; err = -ENOSYS;
goto out; goto out;
}; }
} else { } else {
err = -ENOSYS; err = -ENOSYS;
} }
......
...@@ -708,7 +708,7 @@ static void sparc64_timer_setup(enum clock_event_mode mode, ...@@ -708,7 +708,7 @@ static void sparc64_timer_setup(enum clock_event_mode mode,
case CLOCK_EVT_MODE_UNUSED: case CLOCK_EVT_MODE_UNUSED:
WARN_ON(1); WARN_ON(1);
break; break;
}; }
} }
static struct clock_event_device sparc64_clockevent = { static struct clock_event_device sparc64_clockevent = {
......
...@@ -1804,7 +1804,7 @@ static const char *sun4v_err_type_to_str(u32 type) ...@@ -1804,7 +1804,7 @@ static const char *sun4v_err_type_to_str(u32 type)
return "warning resumable"; return "warning resumable";
default: default:
return "unknown"; return "unknown";
}; }
} }
static void sun4v_log_error(struct pt_regs *regs, struct sun4v_error_entry *ent, int cpu, const char *pfx, atomic_t *ocnt) static void sun4v_log_error(struct pt_regs *regs, struct sun4v_error_entry *ent, int cpu, const char *pfx, atomic_t *ocnt)
......
...@@ -211,7 +211,7 @@ static inline int do_int_store(int reg_num, int size, unsigned long *dst_addr, ...@@ -211,7 +211,7 @@ static inline int do_int_store(int reg_num, int size, unsigned long *dst_addr,
default: default:
BUG(); BUG();
break; break;
}; }
} }
return __do_int_store(dst_addr, size, src_val, asi); return __do_int_store(dst_addr, size, src_val, asi);
} }
...@@ -328,7 +328,7 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) ...@@ -328,7 +328,7 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn)
case ASI_SNFL: case ASI_SNFL:
asi &= ~0x08; asi &= ~0x08;
break; break;
}; }
switch (dir) { switch (dir) {
case load: case load:
reg_addr = fetch_reg_addr(((insn>>25)&0x1f), regs); reg_addr = fetch_reg_addr(((insn>>25)&0x1f), regs);
...@@ -351,7 +351,7 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) ...@@ -351,7 +351,7 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn)
default: default:
BUG(); BUG();
break; break;
}; }
*reg_addr = val_in; *reg_addr = val_in;
} }
break; break;
......
...@@ -176,7 +176,7 @@ static unsigned long index_to_estar_mode(unsigned int index) ...@@ -176,7 +176,7 @@ static unsigned long index_to_estar_mode(unsigned int index)
default: default:
BUG(); BUG();
}; }
} }
static unsigned long index_to_divisor(unsigned int index) static unsigned long index_to_divisor(unsigned int index)
...@@ -199,7 +199,7 @@ static unsigned long index_to_divisor(unsigned int index) ...@@ -199,7 +199,7 @@ static unsigned long index_to_divisor(unsigned int index)
default: default:
BUG(); BUG();
}; }
} }
static unsigned long estar_to_divisor(unsigned long estar) static unsigned long estar_to_divisor(unsigned long estar)
...@@ -224,7 +224,7 @@ static unsigned long estar_to_divisor(unsigned long estar) ...@@ -224,7 +224,7 @@ static unsigned long estar_to_divisor(unsigned long estar)
break; break;
default: default:
BUG(); BUG();
}; }
return ret; return ret;
} }
......
...@@ -71,7 +71,7 @@ static unsigned long get_current_freq(unsigned int cpu, unsigned long safari_cfg ...@@ -71,7 +71,7 @@ static unsigned long get_current_freq(unsigned int cpu, unsigned long safari_cfg
break; break;
default: default:
BUG(); BUG();
}; }
return ret; return ret;
} }
...@@ -125,7 +125,7 @@ static void us3_set_cpu_divider_index(unsigned int cpu, unsigned int index) ...@@ -125,7 +125,7 @@ static void us3_set_cpu_divider_index(unsigned int cpu, unsigned int index)
default: default:
BUG(); BUG();
}; }
reg = read_safari_cfg(); reg = read_safari_cfg();
......
...@@ -363,7 +363,7 @@ static int process_ver(struct vio_driver_state *vio, struct vio_ver_info *pkt) ...@@ -363,7 +363,7 @@ static int process_ver(struct vio_driver_state *vio, struct vio_ver_info *pkt)
default: default:
return handshake_failure(vio); return handshake_failure(vio);
}; }
} }
static int process_attr(struct vio_driver_state *vio, void *pkt) static int process_attr(struct vio_driver_state *vio, void *pkt)
......
...@@ -334,7 +334,7 @@ static void edge(struct pt_regs *regs, unsigned int insn, unsigned int opf) ...@@ -334,7 +334,7 @@ static void edge(struct pt_regs *regs, unsigned int insn, unsigned int opf)
left = edge32_tab_l[(rs1 >> 2) & 0x1].left; left = edge32_tab_l[(rs1 >> 2) & 0x1].left;
right = edge32_tab_l[(rs2 >> 2) & 0x1].right; right = edge32_tab_l[(rs2 >> 2) & 0x1].right;
break; break;
}; }
if ((rs1 & ~0x7UL) == (rs2 & ~0x7UL)) if ((rs1 & ~0x7UL) == (rs2 & ~0x7UL))
rd_val = right & left; rd_val = right & left;
...@@ -360,7 +360,7 @@ static void edge(struct pt_regs *regs, unsigned int insn, unsigned int opf) ...@@ -360,7 +360,7 @@ static void edge(struct pt_regs *regs, unsigned int insn, unsigned int opf)
tstate = regs->tstate & ~(TSTATE_XCC | TSTATE_ICC); tstate = regs->tstate & ~(TSTATE_XCC | TSTATE_ICC);
regs->tstate = tstate | (ccr << 32UL); regs->tstate = tstate | (ccr << 32UL);
} }
}; }
} }
static void array(struct pt_regs *regs, unsigned int insn, unsigned int opf) static void array(struct pt_regs *regs, unsigned int insn, unsigned int opf)
...@@ -392,7 +392,7 @@ static void array(struct pt_regs *regs, unsigned int insn, unsigned int opf) ...@@ -392,7 +392,7 @@ static void array(struct pt_regs *regs, unsigned int insn, unsigned int opf)
case ARRAY32_OPF: case ARRAY32_OPF:
rd_val <<= 2; rd_val <<= 2;
}; }
store_reg(regs, rd_val, RD(insn)); store_reg(regs, rd_val, RD(insn));
} }
...@@ -577,7 +577,7 @@ static void pformat(struct pt_regs *regs, unsigned int insn, unsigned int opf) ...@@ -577,7 +577,7 @@ static void pformat(struct pt_regs *regs, unsigned int insn, unsigned int opf)
*fpd_regaddr(f, RD(insn)) = rd_val; *fpd_regaddr(f, RD(insn)) = rd_val;
break; break;
} }
}; }
} }
static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf) static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf)
...@@ -693,7 +693,7 @@ static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf) ...@@ -693,7 +693,7 @@ static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf)
*fpd_regaddr(f, RD(insn)) = rd_val; *fpd_regaddr(f, RD(insn)) = rd_val;
break; break;
} }
}; }
} }
static void pcmp(struct pt_regs *regs, unsigned int insn, unsigned int opf) static void pcmp(struct pt_regs *regs, unsigned int insn, unsigned int opf)
...@@ -786,7 +786,7 @@ static void pcmp(struct pt_regs *regs, unsigned int insn, unsigned int opf) ...@@ -786,7 +786,7 @@ static void pcmp(struct pt_regs *regs, unsigned int insn, unsigned int opf)
rd_val |= 1 << i; rd_val |= 1 << i;
} }
break; break;
}; }
maybe_flush_windows(0, 0, RD(insn), 0); maybe_flush_windows(0, 0, RD(insn), 0);
store_reg(regs, rd_val, RD(insn)); store_reg(regs, rd_val, RD(insn));
...@@ -885,7 +885,7 @@ int vis_emul(struct pt_regs *regs, unsigned int insn) ...@@ -885,7 +885,7 @@ int vis_emul(struct pt_regs *regs, unsigned int insn)
case BSHUFFLE_OPF: case BSHUFFLE_OPF:
bshuffle(regs, insn); bshuffle(regs, insn);
break; break;
}; }
regs->tpc = regs->tnpc; regs->tpc = regs->tnpc;
regs->tnpc += 4; regs->tnpc += 4;
......
...@@ -135,7 +135,7 @@ asmlinkage int lookup_fault(unsigned long pc, unsigned long ret_pc, ...@@ -135,7 +135,7 @@ asmlinkage int lookup_fault(unsigned long pc, unsigned long ret_pc,
default: default:
break; break;
}; }
memset(&regs, 0, sizeof (regs)); memset(&regs, 0, sizeof (regs));
regs.pc = pc; regs.pc = pc;
......
...@@ -340,7 +340,7 @@ void __init paging_init(void) ...@@ -340,7 +340,7 @@ void __init paging_init(void)
prom_printf("paging_init: sparc_cpu_model = %d\n", sparc_cpu_model); prom_printf("paging_init: sparc_cpu_model = %d\n", sparc_cpu_model);
prom_printf("paging_init: Halting...\n"); prom_printf("paging_init: Halting...\n");
prom_halt(); prom_halt();
}; }
/* Initialize the protection map with non-constant, MMU dependent values. */ /* Initialize the protection map with non-constant, MMU dependent values. */
protection_map[0] = PAGE_NONE; protection_map[0] = PAGE_NONE;
......
...@@ -1625,7 +1625,7 @@ static void __init sun4v_ktsb_init(void) ...@@ -1625,7 +1625,7 @@ static void __init sun4v_ktsb_init(void)
ktsb_descr[0].pgsz_idx = HV_PGSZ_IDX_4MB; ktsb_descr[0].pgsz_idx = HV_PGSZ_IDX_4MB;
ktsb_descr[0].pgsz_mask = HV_PGSZ_MASK_4MB; ktsb_descr[0].pgsz_mask = HV_PGSZ_MASK_4MB;
break; break;
}; }
ktsb_descr[0].assoc = 1; ktsb_descr[0].assoc = 1;
ktsb_descr[0].num_ttes = KERNEL_TSB_NENTRIES; ktsb_descr[0].num_ttes = KERNEL_TSB_NENTRIES;
...@@ -2266,7 +2266,7 @@ unsigned long pte_sz_bits(unsigned long sz) ...@@ -2266,7 +2266,7 @@ unsigned long pte_sz_bits(unsigned long sz)
return _PAGE_SZ512K_4V; return _PAGE_SZ512K_4V;
case 4 * 1024 * 1024: case 4 * 1024 * 1024:
return _PAGE_SZ4MB_4V; return _PAGE_SZ4MB_4V;
}; }
} else { } else {
switch (sz) { switch (sz) {
case 8 * 1024: case 8 * 1024:
...@@ -2278,7 +2278,7 @@ unsigned long pte_sz_bits(unsigned long sz) ...@@ -2278,7 +2278,7 @@ unsigned long pte_sz_bits(unsigned long sz)
return _PAGE_SZ512K_4U; return _PAGE_SZ512K_4U;
case 4 * 1024 * 1024: case 4 * 1024 * 1024:
return _PAGE_SZ4MB_4U; return _PAGE_SZ4MB_4U;
}; }
} }
} }
......
...@@ -1665,7 +1665,7 @@ static void __init init_swift(void) ...@@ -1665,7 +1665,7 @@ static void __init init_swift(void)
default: default:
srmmu_modtype = Swift_ok; srmmu_modtype = Swift_ok;
break; break;
}; }
BTFIXUPSET_CALL(flush_cache_all, swift_flush_cache_all, BTFIXUPCALL_NORM); BTFIXUPSET_CALL(flush_cache_all, swift_flush_cache_all, BTFIXUPCALL_NORM);
BTFIXUPSET_CALL(flush_cache_mm, swift_flush_cache_mm, BTFIXUPCALL_NORM); BTFIXUPSET_CALL(flush_cache_mm, swift_flush_cache_mm, BTFIXUPCALL_NORM);
...@@ -2069,7 +2069,7 @@ static void __init get_srmmu_type(void) ...@@ -2069,7 +2069,7 @@ static void __init get_srmmu_type(void)
/* Some other Cypress revision, assume a 605. */ /* Some other Cypress revision, assume a 605. */
init_cypress_605(mod_rev); init_cypress_605(mod_rev);
break; break;
}; }
return; return;
} }
......
...@@ -318,7 +318,7 @@ void __init sun4c_probe_vac(void) ...@@ -318,7 +318,7 @@ void __init sun4c_probe_vac(void)
prom_printf("probe_vac: Didn't expect vac-linesize of %d, halting\n", prom_printf("probe_vac: Didn't expect vac-linesize of %d, halting\n",
sun4c_vacinfo.linesize); sun4c_vacinfo.linesize);
prom_halt(); prom_halt();
}; }
sun4c_flush_all(); sun4c_flush_all();
sun4c_enable_vac(); sun4c_enable_vac();
...@@ -364,7 +364,7 @@ static void __init patch_kernel_fault_handler(void) ...@@ -364,7 +364,7 @@ static void __init patch_kernel_fault_handler(void)
prom_printf("Unhandled number of segmaps: %d\n", prom_printf("Unhandled number of segmaps: %d\n",
num_segmaps); num_segmaps);
prom_halt(); prom_halt();
}; }
switch (num_contexts) { switch (num_contexts) {
case 8: case 8:
/* Default, nothing to do. */ /* Default, nothing to do. */
...@@ -377,7 +377,7 @@ static void __init patch_kernel_fault_handler(void) ...@@ -377,7 +377,7 @@ static void __init patch_kernel_fault_handler(void)
prom_printf("Unhandled number of contexts: %d\n", prom_printf("Unhandled number of contexts: %d\n",
num_contexts); num_contexts);
prom_halt(); prom_halt();
}; }
if (sun4c_vacinfo.do_hwflushes != 0) { if (sun4c_vacinfo.do_hwflushes != 0) {
PATCH_INSN(vac_hwflush_patch1_on, vac_hwflush_patch1); PATCH_INSN(vac_hwflush_patch1_on, vac_hwflush_patch1);
...@@ -394,7 +394,7 @@ static void __init patch_kernel_fault_handler(void) ...@@ -394,7 +394,7 @@ static void __init patch_kernel_fault_handler(void)
prom_printf("Impossible VAC linesize %d, halting...\n", prom_printf("Impossible VAC linesize %d, halting...\n",
sun4c_vacinfo.linesize); sun4c_vacinfo.linesize);
prom_halt(); prom_halt();
}; }
} }
} }
......
...@@ -180,7 +180,7 @@ static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsign ...@@ -180,7 +180,7 @@ static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsign
printk(KERN_ERR "TSB[%s:%d]: Impossible TSB size %lu, killing process.\n", printk(KERN_ERR "TSB[%s:%d]: Impossible TSB size %lu, killing process.\n",
current->comm, current->pid, tsb_bytes); current->comm, current->pid, tsb_bytes);
do_exit(SIGSEGV); do_exit(SIGSEGV);
}; }
tte |= pte_sz_bits(page_sz); tte |= pte_sz_bits(page_sz);
if (tlb_type == cheetah_plus || tlb_type == hypervisor) { if (tlb_type == cheetah_plus || tlb_type == hypervisor) {
...@@ -215,7 +215,7 @@ static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsign ...@@ -215,7 +215,7 @@ static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsign
#endif #endif
default: default:
BUG(); BUG();
}; }
hp->assoc = 1; hp->assoc = 1;
hp->num_ttes = tsb_bytes / 16; hp->num_ttes = tsb_bytes / 16;
hp->ctx_idx = 0; hp->ctx_idx = 0;
...@@ -230,7 +230,7 @@ static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsign ...@@ -230,7 +230,7 @@ static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsign
#endif #endif
default: default:
BUG(); BUG();
}; }
hp->tsb_base = tsb_paddr; hp->tsb_base = tsb_paddr;
hp->resv = 0; hp->resv = 0;
} }
......
...@@ -38,7 +38,7 @@ static int prom_nbputchar(const char *buf) ...@@ -38,7 +38,7 @@ static int prom_nbputchar(const char *buf)
break; break;
default: default:
break; break;
}; }
restore_current(); restore_current();
spin_unlock_irqrestore(&prom_lock, flags); spin_unlock_irqrestore(&prom_lock, flags);
return i; /* Ugh, we could spin forever on unsupported proms ;( */ return i; /* Ugh, we could spin forever on unsupported proms ;( */
......
...@@ -53,7 +53,7 @@ void __init prom_init(struct linux_romvec *rp) ...@@ -53,7 +53,7 @@ void __init prom_init(struct linux_romvec *rp)
romvec->pv_romvers); romvec->pv_romvers);
prom_halt(); prom_halt();
break; break;
}; }
prom_rev = romvec->pv_plugin_revision; prom_rev = romvec->pv_plugin_revision;
prom_prev = romvec->pv_printrev; prom_prev = romvec->pv_printrev;
......
...@@ -35,7 +35,7 @@ prom_startcpu(int cpunode, struct linux_prom_registers *ctable_reg, int ctx, cha ...@@ -35,7 +35,7 @@ prom_startcpu(int cpunode, struct linux_prom_registers *ctable_reg, int ctx, cha
case PROM_V3: case PROM_V3:
ret = (*(romvec->v3_cpustart))(cpunode, (int) ctable_reg, ctx, pc); ret = (*(romvec->v3_cpustart))(cpunode, (int) ctable_reg, ctx, pc);
break; break;
}; }
restore_current(); restore_current();
spin_unlock_irqrestore(&prom_lock, flags); spin_unlock_irqrestore(&prom_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment