Commit c9b02990 authored by Liangliang Huang's avatar Liangliang Huang Committed by Thomas Bogendoerfer

MIPS: Use fallthrough for arch/mips

Convert the various /* fallthrough */ comments to the pseudo-keyword
fallthrough;

Done via script:
https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe@perches.com/Signed-off-by: default avatarLiangliang Huang <huangll@lemote.com>
Reviewed-by: default avatarHuacai Chen <chenhc@lemote.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent ff487d41
...@@ -225,7 +225,7 @@ static void __init pb1550_nand_setup(void) ...@@ -225,7 +225,7 @@ static void __init pb1550_nand_setup(void)
case 0: case 2: case 8: case 0xC: case 0xD: case 0: case 2: case 8: case 0xC: case 0xD:
/* x16 NAND Flash */ /* x16 NAND Flash */
pb1550_nand_pd.devwidth = 1; pb1550_nand_pd.devwidth = 1;
/* fallthrough */ fallthrough;
case 1: case 3: case 9: case 0xE: case 0xF: case 1: case 3: case 9: case 0xE: case 0xF:
/* x8 NAND, already set up */ /* x8 NAND, already set up */
platform_device_register(&pb1550_nand_dev); platform_device_register(&pb1550_nand_dev);
......
...@@ -57,7 +57,7 @@ const char *get_system_type(void) ...@@ -57,7 +57,7 @@ const char *get_system_type(void)
case TITAN_CHIP_1060: case TITAN_CHIP_1060:
return "TI AR7 (TNETV1060)"; return "TI AR7 (TNETV1060)";
} }
/* fall through */ fallthrough;
default: default:
return "TI AR7 (unknown)"; return "TI AR7 (unknown)";
} }
......
...@@ -153,8 +153,7 @@ static void __init ath79_detect_sys_type(void) ...@@ -153,8 +153,7 @@ static void __init ath79_detect_sys_type(void)
case REV_ID_MAJOR_QCA9533_V2: case REV_ID_MAJOR_QCA9533_V2:
ver = 2; ver = 2;
ath79_soc_rev = 2; ath79_soc_rev = 2;
/* fall through */ fallthrough;
case REV_ID_MAJOR_QCA9533: case REV_ID_MAJOR_QCA9533:
ath79_soc = ATH79_SOC_QCA9533; ath79_soc = ATH79_SOC_QCA9533;
chip = "9533"; chip = "9533";
......
...@@ -304,7 +304,7 @@ void __init bcm63xx_cpu_init(void) ...@@ -304,7 +304,7 @@ void __init bcm63xx_cpu_init(void)
case CPU_BMIPS3300: case CPU_BMIPS3300:
if ((read_c0_prid() & PRID_IMP_MASK) != PRID_IMP_BMIPS3300_ALT) if ((read_c0_prid() & PRID_IMP_MASK) != PRID_IMP_BMIPS3300_ALT)
__cpu_name[cpu] = "Broadcom BCM6338"; __cpu_name[cpu] = "Broadcom BCM6338";
/* fall-through */ fallthrough;
case CPU_BMIPS32: case CPU_BMIPS32:
chipid_reg = BCM_6345_PERF_BASE; chipid_reg = BCM_6345_PERF_BASE;
break; break;
......
...@@ -94,7 +94,7 @@ static int __init bcm63xx_detect_flash_type(void) ...@@ -94,7 +94,7 @@ static int __init bcm63xx_detect_flash_type(void)
case STRAPBUS_6368_BOOT_SEL_PARALLEL: case STRAPBUS_6368_BOOT_SEL_PARALLEL:
return BCM63XX_FLASH_TYPE_PARALLEL; return BCM63XX_FLASH_TYPE_PARALLEL;
} }
/* fall through */ fallthrough;
default: default:
return -EINVAL; return -EINVAL;
} }
......
...@@ -489,7 +489,7 @@ cvmx_pko_status_t cvmx_pko_config_port(uint64_t port, uint64_t base_queue, ...@@ -489,7 +489,7 @@ cvmx_pko_status_t cvmx_pko_config_port(uint64_t port, uint64_t base_queue,
config.s.qos_mask = 0xff; config.s.qos_mask = 0xff;
break; break;
} }
/* fall through - to the error case, when Pass 1 */ fallthrough; /* to the error case, when Pass 1 */
default: default:
cvmx_dprintf("ERROR: cvmx_pko_config_port: Invalid " cvmx_dprintf("ERROR: cvmx_pko_config_port: Invalid "
"priority %llu\n", "priority %llu\n",
......
...@@ -141,7 +141,7 @@ static void octeon2_usb_clocks_start(struct device *dev) ...@@ -141,7 +141,7 @@ static void octeon2_usb_clocks_start(struct device *dev)
default: default:
pr_err("Invalid UCTL clock rate of %u, using 12000000 instead\n", pr_err("Invalid UCTL clock rate of %u, using 12000000 instead\n",
clock_rate); clock_rate);
/* Fall through */ fallthrough;
case 12000000: case 12000000:
clk_rst_ctl.s.p_refclk_div = 0; clk_rst_ctl.s.p_refclk_div = 0;
break; break;
...@@ -1116,7 +1116,7 @@ int __init octeon_prune_device_tree(void) ...@@ -1116,7 +1116,7 @@ int __init octeon_prune_device_tree(void)
new_f[0] = cpu_to_be32(48000000); new_f[0] = cpu_to_be32(48000000);
fdt_setprop_inplace(initial_boot_params, usbn, fdt_setprop_inplace(initial_boot_params, usbn,
"refclk-frequency", new_f, sizeof(new_f)); "refclk-frequency", new_f, sizeof(new_f));
/* Fall through ...*/ fallthrough;
case USB_CLOCK_TYPE_REF_12: case USB_CLOCK_TYPE_REF_12:
/* Missing "refclk-type" defaults to external. */ /* Missing "refclk-type" defaults to external. */
fdt_nop_property(initial_boot_params, usbn, "refclk-type"); fdt_nop_property(initial_boot_params, usbn, "refclk-type");
......
...@@ -398,7 +398,7 @@ static int dwc3_octeon_clocks_start(struct device *dev, u64 base) ...@@ -398,7 +398,7 @@ static int dwc3_octeon_clocks_start(struct device *dev, u64 base)
default: default:
dev_err(dev, "Invalid ref_clk %u, using 100000000 instead\n", dev_err(dev, "Invalid ref_clk %u, using 100000000 instead\n",
clock_rate); clock_rate);
/* fall through */ fallthrough;
case 100000000: case 100000000:
mpll_mul = 0x19; mpll_mul = 0x19;
if (ref_clk_sel < 2) if (ref_clk_sel < 2)
......
...@@ -52,7 +52,7 @@ int __init tc_bus_get_info(struct tc_bus *tbus) ...@@ -52,7 +52,7 @@ int __init tc_bus_get_info(struct tc_bus *tbus)
case MACH_DS5900: case MACH_DS5900:
tbus->ext_slot_base = 0x20000000; tbus->ext_slot_base = 0x20000000;
tbus->ext_slot_size = 0x20000000; tbus->ext_slot_size = 0x20000000;
/* fall through */ fallthrough;
case MACH_DS5000_1XX: case MACH_DS5000_1XX:
tbus->num_tcslots = 3; tbus->num_tcslots = 3;
break; break;
......
...@@ -76,7 +76,7 @@ static inline int __enable_fpu(enum fpu_mode mode) ...@@ -76,7 +76,7 @@ static inline int __enable_fpu(enum fpu_mode mode)
/* we only have a 32-bit FPU */ /* we only have a 32-bit FPU */
return SIGFPE; return SIGFPE;
#endif #endif
/* fall through */ fallthrough;
case FPU_32BIT: case FPU_32BIT:
if (cpu_has_fre) { if (cpu_has_fre) {
/* clear FRE */ /* clear FRE */
......
...@@ -46,7 +46,7 @@ static inline uint64_t CVMX_SLI_PCIE_MSI_RCV_FUNC(void) ...@@ -46,7 +46,7 @@ static inline uint64_t CVMX_SLI_PCIE_MSI_RCV_FUNC(void)
case OCTEON_CN78XX & OCTEON_FAMILY_MASK: case OCTEON_CN78XX & OCTEON_FAMILY_MASK:
if (OCTEON_IS_MODEL(OCTEON_CN78XX_PASS1_X)) if (OCTEON_IS_MODEL(OCTEON_CN78XX_PASS1_X))
return 0x0000000000003CB0ull; return 0x0000000000003CB0ull;
/* Else, fall through */ fallthrough;
default: default:
return 0x0000000000023CB0ull; return 0x0000000000023CB0ull;
} }
......
...@@ -49,7 +49,7 @@ static inline unsigned int page_size_ftlb(unsigned int mmuextdef) ...@@ -49,7 +49,7 @@ static inline unsigned int page_size_ftlb(unsigned int mmuextdef)
return 6; return 6;
if (PAGE_SIZE > (256 << 10)) if (PAGE_SIZE > (256 << 10))
return 7; /* reserved */ return 7; /* reserved */
/* fall through */ fallthrough;
case MIPS_CONF4_MMUEXTDEF_VTLBSIZEEXT: case MIPS_CONF4_MMUEXTDEF_VTLBSIZEEXT:
return (PAGE_SHIFT - 10) / 2; return (PAGE_SHIFT - 10) / 2;
default: default:
......
...@@ -90,7 +90,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -90,7 +90,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
regs->regs[31] = regs->cp0_epc + regs->regs[31] = regs->cp0_epc +
dec_insn.pc_inc + dec_insn.pc_inc +
dec_insn.next_pc_inc; dec_insn.next_pc_inc;
/* Fall through */ fallthrough;
case mm_bltz_op: case mm_bltz_op:
if ((long)regs->regs[insn.mm_i_format.rs] < 0) if ((long)regs->regs[insn.mm_i_format.rs] < 0)
*contpc = regs->cp0_epc + *contpc = regs->cp0_epc +
...@@ -106,7 +106,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -106,7 +106,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
regs->regs[31] = regs->cp0_epc + regs->regs[31] = regs->cp0_epc +
dec_insn.pc_inc + dec_insn.pc_inc +
dec_insn.next_pc_inc; dec_insn.next_pc_inc;
/* Fall through */ fallthrough;
case mm_bgez_op: case mm_bgez_op:
if ((long)regs->regs[insn.mm_i_format.rs] >= 0) if ((long)regs->regs[insn.mm_i_format.rs] >= 0)
*contpc = regs->cp0_epc + *contpc = regs->cp0_epc +
...@@ -144,7 +144,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -144,7 +144,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
unsigned int bit; unsigned int bit;
bc_false = 1; bc_false = 1;
/* Fall through */ fallthrough;
case mm_bc2t_op: case mm_bc2t_op:
case mm_bc1t_op: case mm_bc1t_op:
preempt_disable(); preempt_disable();
...@@ -178,7 +178,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -178,7 +178,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
case mm_jalrs16_op: case mm_jalrs16_op:
regs->regs[31] = regs->cp0_epc + regs->regs[31] = regs->cp0_epc +
dec_insn.pc_inc + dec_insn.next_pc_inc; dec_insn.pc_inc + dec_insn.next_pc_inc;
/* Fall through */ fallthrough;
case mm_jr16_op: case mm_jr16_op:
*contpc = regs->regs[insn.mm_i_format.rs]; *contpc = regs->regs[insn.mm_i_format.rs];
return 1; return 1;
...@@ -239,7 +239,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -239,7 +239,7 @@ int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
case mm_jal32_op: case mm_jal32_op:
regs->regs[31] = regs->cp0_epc + regs->regs[31] = regs->cp0_epc +
dec_insn.pc_inc + dec_insn.next_pc_inc; dec_insn.pc_inc + dec_insn.next_pc_inc;
/* Fall through */ fallthrough;
case mm_j32_op: case mm_j32_op:
*contpc = regs->cp0_epc + dec_insn.pc_inc; *contpc = regs->cp0_epc + dec_insn.pc_inc;
*contpc >>= 27; *contpc >>= 27;
...@@ -432,7 +432,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, ...@@ -432,7 +432,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
switch (insn.r_format.func) { switch (insn.r_format.func) {
case jalr_op: case jalr_op:
regs->regs[insn.r_format.rd] = epc + 8; regs->regs[insn.r_format.rd] = epc + 8;
/* Fall through */ fallthrough;
case jr_op: case jr_op:
if (NO_R6EMU && insn.r_format.func == jr_op) if (NO_R6EMU && insn.r_format.func == jr_op)
goto sigill_r2r6; goto sigill_r2r6;
...@@ -451,7 +451,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, ...@@ -451,7 +451,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
case bltzl_op: case bltzl_op:
if (NO_R6EMU) if (NO_R6EMU)
goto sigill_r2r6; goto sigill_r2r6;
/* fall through */ fallthrough;
case bltz_op: case bltz_op:
if ((long)regs->regs[insn.i_format.rs] < 0) { if ((long)regs->regs[insn.i_format.rs] < 0) {
epc = epc + 4 + (insn.i_format.simmediate << 2); epc = epc + 4 + (insn.i_format.simmediate << 2);
...@@ -465,7 +465,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, ...@@ -465,7 +465,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
case bgezl_op: case bgezl_op:
if (NO_R6EMU) if (NO_R6EMU)
goto sigill_r2r6; goto sigill_r2r6;
/* fall through */ fallthrough;
case bgez_op: case bgez_op:
if ((long)regs->regs[insn.i_format.rs] >= 0) { if ((long)regs->regs[insn.i_format.rs] >= 0) {
epc = epc + 4 + (insn.i_format.simmediate << 2); epc = epc + 4 + (insn.i_format.simmediate << 2);
...@@ -561,7 +561,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, ...@@ -561,7 +561,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
case jalx_op: case jalx_op:
case jal_op: case jal_op:
regs->regs[31] = regs->cp0_epc + 8; regs->regs[31] = regs->cp0_epc + 8;
/* fall through */ fallthrough;
case j_op: case j_op:
epc += 4; epc += 4;
epc >>= 28; epc >>= 28;
...@@ -578,7 +578,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, ...@@ -578,7 +578,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
case beql_op: case beql_op:
if (NO_R6EMU) if (NO_R6EMU)
goto sigill_r2r6; goto sigill_r2r6;
/* fall through */ fallthrough;
case beq_op: case beq_op:
if (regs->regs[insn.i_format.rs] == if (regs->regs[insn.i_format.rs] ==
regs->regs[insn.i_format.rt]) { regs->regs[insn.i_format.rt]) {
...@@ -593,7 +593,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, ...@@ -593,7 +593,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
case bnel_op: case bnel_op:
if (NO_R6EMU) if (NO_R6EMU)
goto sigill_r2r6; goto sigill_r2r6;
/* fall through */ fallthrough;
case bne_op: case bne_op:
if (regs->regs[insn.i_format.rs] != if (regs->regs[insn.i_format.rs] !=
regs->regs[insn.i_format.rt]) { regs->regs[insn.i_format.rt]) {
...@@ -608,7 +608,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, ...@@ -608,7 +608,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
case blezl_op: /* not really i_format */ case blezl_op: /* not really i_format */
if (!insn.i_format.rt && NO_R6EMU) if (!insn.i_format.rt && NO_R6EMU)
goto sigill_r2r6; goto sigill_r2r6;
/* fall through */ fallthrough;
case blez_op: case blez_op:
/* /*
* Compact branches for R6 for the * Compact branches for R6 for the
...@@ -644,7 +644,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs, ...@@ -644,7 +644,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
case bgtzl_op: case bgtzl_op:
if (!insn.i_format.rt && NO_R6EMU) if (!insn.i_format.rt && NO_R6EMU)
goto sigill_r2r6; goto sigill_r2r6;
/* fall through */ fallthrough;
case bgtz_op: case bgtz_op:
/* /*
* Compact branches for R6 for the * Compact branches for R6 for the
......
...@@ -535,19 +535,19 @@ static void set_isa(struct cpuinfo_mips *c, unsigned int isa) ...@@ -535,19 +535,19 @@ static void set_isa(struct cpuinfo_mips *c, unsigned int isa)
case MIPS_CPU_ISA_M64R2: case MIPS_CPU_ISA_M64R2:
c->isa_level |= MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M64R2; c->isa_level |= MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M64R2;
set_elf_base_platform("mips64r2"); set_elf_base_platform("mips64r2");
/* fall through */ fallthrough;
case MIPS_CPU_ISA_M64R1: case MIPS_CPU_ISA_M64R1:
c->isa_level |= MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1; c->isa_level |= MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1;
set_elf_base_platform("mips64"); set_elf_base_platform("mips64");
/* fall through */ fallthrough;
case MIPS_CPU_ISA_V: case MIPS_CPU_ISA_V:
c->isa_level |= MIPS_CPU_ISA_V; c->isa_level |= MIPS_CPU_ISA_V;
set_elf_base_platform("mips5"); set_elf_base_platform("mips5");
/* fall through */ fallthrough;
case MIPS_CPU_ISA_IV: case MIPS_CPU_ISA_IV:
c->isa_level |= MIPS_CPU_ISA_IV; c->isa_level |= MIPS_CPU_ISA_IV;
set_elf_base_platform("mips4"); set_elf_base_platform("mips4");
/* fall through */ fallthrough;
case MIPS_CPU_ISA_III: case MIPS_CPU_ISA_III:
c->isa_level |= MIPS_CPU_ISA_II | MIPS_CPU_ISA_III; c->isa_level |= MIPS_CPU_ISA_II | MIPS_CPU_ISA_III;
set_elf_base_platform("mips3"); set_elf_base_platform("mips3");
...@@ -557,7 +557,7 @@ static void set_isa(struct cpuinfo_mips *c, unsigned int isa) ...@@ -557,7 +557,7 @@ static void set_isa(struct cpuinfo_mips *c, unsigned int isa)
case MIPS_CPU_ISA_M64R6: case MIPS_CPU_ISA_M64R6:
c->isa_level |= MIPS_CPU_ISA_M32R6 | MIPS_CPU_ISA_M64R6; c->isa_level |= MIPS_CPU_ISA_M32R6 | MIPS_CPU_ISA_M64R6;
set_elf_base_platform("mips64r6"); set_elf_base_platform("mips64r6");
/* fall through */ fallthrough;
case MIPS_CPU_ISA_M32R6: case MIPS_CPU_ISA_M32R6:
c->isa_level |= MIPS_CPU_ISA_M32R6; c->isa_level |= MIPS_CPU_ISA_M32R6;
set_elf_base_platform("mips32r6"); set_elf_base_platform("mips32r6");
...@@ -566,11 +566,11 @@ static void set_isa(struct cpuinfo_mips *c, unsigned int isa) ...@@ -566,11 +566,11 @@ static void set_isa(struct cpuinfo_mips *c, unsigned int isa)
case MIPS_CPU_ISA_M32R2: case MIPS_CPU_ISA_M32R2:
c->isa_level |= MIPS_CPU_ISA_M32R2; c->isa_level |= MIPS_CPU_ISA_M32R2;
set_elf_base_platform("mips32r2"); set_elf_base_platform("mips32r2");
/* fall through */ fallthrough;
case MIPS_CPU_ISA_M32R1: case MIPS_CPU_ISA_M32R1:
c->isa_level |= MIPS_CPU_ISA_M32R1; c->isa_level |= MIPS_CPU_ISA_M32R1;
set_elf_base_platform("mips32"); set_elf_base_platform("mips32");
/* fall through */ fallthrough;
case MIPS_CPU_ISA_II: case MIPS_CPU_ISA_II:
c->isa_level |= MIPS_CPU_ISA_II; c->isa_level |= MIPS_CPU_ISA_II;
set_elf_base_platform("mips2"); set_elf_base_platform("mips2");
...@@ -850,7 +850,7 @@ static inline unsigned int decode_config4(struct cpuinfo_mips *c) ...@@ -850,7 +850,7 @@ static inline unsigned int decode_config4(struct cpuinfo_mips *c)
MIPS_CONF4_VTLBSIZEEXT_SHIFT) * 0x40; MIPS_CONF4_VTLBSIZEEXT_SHIFT) * 0x40;
c->tlbsize = c->tlbsizevtlb; c->tlbsize = c->tlbsizevtlb;
ftlb_page = MIPS_CONF4_VFTLBPAGESIZE; ftlb_page = MIPS_CONF4_VFTLBPAGESIZE;
/* fall through */ fallthrough;
case MIPS_CONF4_MMUEXTDEF_FTLBSIZEEXT: case MIPS_CONF4_MMUEXTDEF_FTLBSIZEEXT:
if (mips_ftlb_disabled) if (mips_ftlb_disabled)
break; break;
...@@ -1753,10 +1753,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu) ...@@ -1753,10 +1753,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu)
switch (__get_cpu_type(c->cputype)) { switch (__get_cpu_type(c->cputype)) {
case CPU_I6500: case CPU_I6500:
c->options |= MIPS_CPU_SHARED_FTLB_ENTRIES; c->options |= MIPS_CPU_SHARED_FTLB_ENTRIES;
/* fall-through */ fallthrough;
case CPU_I6400: case CPU_I6400:
c->options |= MIPS_CPU_SHARED_FTLB_RAM; c->options |= MIPS_CPU_SHARED_FTLB_RAM;
/* fall-through */ fallthrough;
default: default:
break; break;
} }
...@@ -2077,7 +2077,7 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu) ...@@ -2077,7 +2077,7 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu)
default: default:
break; break;
} }
/* fall-through */ fallthrough;
case PRID_IMP_XBURST_REV2: case PRID_IMP_XBURST_REV2:
c->cputype = CPU_XBURST; c->cputype = CPU_XBURST;
c->writecombine = _CACHE_UNCACHED_ACCELERATED; c->writecombine = _CACHE_UNCACHED_ACCELERATED;
......
...@@ -202,7 +202,7 @@ void __init check_wait(void) ...@@ -202,7 +202,7 @@ void __init check_wait(void)
*/ */
if (IS_ENABLED(CONFIG_MIPS_EJTAG_FDC_TTY)) if (IS_ENABLED(CONFIG_MIPS_EJTAG_FDC_TTY))
break; break;
/* fall through */ fallthrough;
case CPU_M14KC: case CPU_M14KC:
case CPU_M14KEC: case CPU_M14KEC:
case CPU_24K: case CPU_24K:
......
...@@ -1109,7 +1109,7 @@ int mipsr2_decoder(struct pt_regs *regs, u32 inst, unsigned long *fcr31) ...@@ -1109,7 +1109,7 @@ int mipsr2_decoder(struct pt_regs *regs, u32 inst, unsigned long *fcr31)
err = SIGILL; err = SIGILL;
break; break;
} }
/* fall through */ fallthrough;
case beql_op: case beql_op:
case bnel_op: case bnel_op:
if (delay_slot(regs)) { if (delay_slot(regs)) {
......
...@@ -824,7 +824,7 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) ...@@ -824,7 +824,7 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs)
regs->regs[2] = EINTR; regs->regs[2] = EINTR;
break; break;
} }
/* fallthrough */ fallthrough;
case ERESTARTNOINTR: case ERESTARTNOINTR:
regs->regs[7] = regs->regs[26]; regs->regs[7] = regs->regs[26];
regs->regs[2] = regs->regs[0]; regs->regs[2] = regs->regs[0];
......
...@@ -1401,8 +1401,7 @@ asmlinkage void do_cpu(struct pt_regs *regs) ...@@ -1401,8 +1401,7 @@ asmlinkage void do_cpu(struct pt_regs *regs)
force_sig(SIGILL); force_sig(SIGILL);
break; break;
} }
/* Fall through. */ fallthrough;
case 1: { case 1: {
void __user *fault_addr; void __user *fault_addr;
unsigned long fcr31; unsigned long fcr31;
......
...@@ -27,15 +27,15 @@ void mips_install_watch_registers(struct task_struct *t) ...@@ -27,15 +27,15 @@ void mips_install_watch_registers(struct task_struct *t)
case 4: case 4:
write_c0_watchlo3(watches->watchlo[3]); write_c0_watchlo3(watches->watchlo[3]);
write_c0_watchhi3(watchhi | watches->watchhi[3]); write_c0_watchhi3(watchhi | watches->watchhi[3]);
/* fall through */ fallthrough;
case 3: case 3:
write_c0_watchlo2(watches->watchlo[2]); write_c0_watchlo2(watches->watchlo[2]);
write_c0_watchhi2(watchhi | watches->watchhi[2]); write_c0_watchhi2(watchhi | watches->watchhi[2]);
/* fall through */ fallthrough;
case 2: case 2:
write_c0_watchlo1(watches->watchlo[1]); write_c0_watchlo1(watches->watchlo[1]);
write_c0_watchhi1(watchhi | watches->watchhi[1]); write_c0_watchhi1(watchhi | watches->watchhi[1]);
/* fall through */ fallthrough;
case 1: case 1:
write_c0_watchlo0(watches->watchlo[0]); write_c0_watchlo0(watches->watchlo[0]);
write_c0_watchhi0(watchhi | watches->watchhi[0]); write_c0_watchhi0(watchhi | watches->watchhi[0]);
...@@ -58,13 +58,13 @@ void mips_read_watch_registers(void) ...@@ -58,13 +58,13 @@ void mips_read_watch_registers(void)
BUG(); BUG();
case 4: case 4:
watches->watchhi[3] = (read_c0_watchhi3() & watchhi_mask); watches->watchhi[3] = (read_c0_watchhi3() & watchhi_mask);
/* fall through */ fallthrough;
case 3: case 3:
watches->watchhi[2] = (read_c0_watchhi2() & watchhi_mask); watches->watchhi[2] = (read_c0_watchhi2() & watchhi_mask);
/* fall through */ fallthrough;
case 2: case 2:
watches->watchhi[1] = (read_c0_watchhi1() & watchhi_mask); watches->watchhi[1] = (read_c0_watchhi1() & watchhi_mask);
/* fall through */ fallthrough;
case 1: case 1:
watches->watchhi[0] = (read_c0_watchhi0() & watchhi_mask); watches->watchhi[0] = (read_c0_watchhi0() & watchhi_mask);
} }
...@@ -91,25 +91,25 @@ void mips_clear_watch_registers(void) ...@@ -91,25 +91,25 @@ void mips_clear_watch_registers(void)
BUG(); BUG();
case 8: case 8:
write_c0_watchlo7(0); write_c0_watchlo7(0);
/* fall through */ fallthrough;
case 7: case 7:
write_c0_watchlo6(0); write_c0_watchlo6(0);
/* fall through */ fallthrough;
case 6: case 6:
write_c0_watchlo5(0); write_c0_watchlo5(0);
/* fall through */ fallthrough;
case 5: case 5:
write_c0_watchlo4(0); write_c0_watchlo4(0);
/* fall through */ fallthrough;
case 4: case 4:
write_c0_watchlo3(0); write_c0_watchlo3(0);
/* fall through */ fallthrough;
case 3: case 3:
write_c0_watchlo2(0); write_c0_watchlo2(0);
/* fall through */ fallthrough;
case 2: case 2:
write_c0_watchlo1(0); write_c0_watchlo1(0);
/* fall through */ fallthrough;
case 1: case 1:
write_c0_watchlo0(0); write_c0_watchlo0(0);
} }
......
...@@ -64,7 +64,7 @@ static int kvm_compute_return_epc(struct kvm_vcpu *vcpu, unsigned long instpc, ...@@ -64,7 +64,7 @@ static int kvm_compute_return_epc(struct kvm_vcpu *vcpu, unsigned long instpc,
switch (insn.r_format.func) { switch (insn.r_format.func) {
case jalr_op: case jalr_op:
arch->gprs[insn.r_format.rd] = epc + 8; arch->gprs[insn.r_format.rd] = epc + 8;
/* Fall through */ fallthrough;
case jr_op: case jr_op:
nextpc = arch->gprs[insn.r_format.rs]; nextpc = arch->gprs[insn.r_format.rs];
break; break;
...@@ -140,7 +140,7 @@ static int kvm_compute_return_epc(struct kvm_vcpu *vcpu, unsigned long instpc, ...@@ -140,7 +140,7 @@ static int kvm_compute_return_epc(struct kvm_vcpu *vcpu, unsigned long instpc,
/* These are unconditional and in j_format. */ /* These are unconditional and in j_format. */
case jal_op: case jal_op:
arch->gprs[31] = instpc + 8; arch->gprs[31] = instpc + 8;
/* fall through */ fallthrough;
case j_op: case j_op:
epc += 4; epc += 4;
epc >>= 28; epc >>= 28;
...@@ -1724,14 +1724,14 @@ enum emulation_result kvm_mips_emulate_load(union mips_instruction inst, ...@@ -1724,14 +1724,14 @@ enum emulation_result kvm_mips_emulate_load(union mips_instruction inst,
case lhu_op: case lhu_op:
vcpu->mmio_needed = 1; /* unsigned */ vcpu->mmio_needed = 1; /* unsigned */
/* fall through */ fallthrough;
case lh_op: case lh_op:
run->mmio.len = 2; run->mmio.len = 2;
break; break;
case lbu_op: case lbu_op:
vcpu->mmio_needed = 1; /* unsigned */ vcpu->mmio_needed = 1; /* unsigned */
/* fall through */ fallthrough;
case lb_op: case lb_op:
run->mmio.len = 1; run->mmio.len = 1;
break; break;
......
...@@ -439,7 +439,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -439,7 +439,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
regs->cp0_epc + dec_insn.pc_inc + regs->cp0_epc + dec_insn.pc_inc +
dec_insn.next_pc_inc; dec_insn.next_pc_inc;
} }
/* fall through */ fallthrough;
case jr_op: case jr_op:
/* For R6, JR already emulated in jalr_op */ /* For R6, JR already emulated in jalr_op */
if (NO_R6EMU && insn.r_format.func == jr_op) if (NO_R6EMU && insn.r_format.func == jr_op)
...@@ -459,11 +459,11 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -459,11 +459,11 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
regs->regs[31] = regs->cp0_epc + regs->regs[31] = regs->cp0_epc +
dec_insn.pc_inc + dec_insn.pc_inc +
dec_insn.next_pc_inc; dec_insn.next_pc_inc;
/* fall through */ fallthrough;
case bltzl_op: case bltzl_op:
if (NO_R6EMU) if (NO_R6EMU)
break; break;
/* fall through */ fallthrough;
case bltz_op: case bltz_op:
if ((long)regs->regs[insn.i_format.rs] < 0) if ((long)regs->regs[insn.i_format.rs] < 0)
*contpc = regs->cp0_epc + *contpc = regs->cp0_epc +
...@@ -483,11 +483,11 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -483,11 +483,11 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
regs->regs[31] = regs->cp0_epc + regs->regs[31] = regs->cp0_epc +
dec_insn.pc_inc + dec_insn.pc_inc +
dec_insn.next_pc_inc; dec_insn.next_pc_inc;
/* fall through */ fallthrough;
case bgezl_op: case bgezl_op:
if (NO_R6EMU) if (NO_R6EMU)
break; break;
/* fall through */ fallthrough;
case bgez_op: case bgez_op:
if ((long)regs->regs[insn.i_format.rs] >= 0) if ((long)regs->regs[insn.i_format.rs] >= 0)
*contpc = regs->cp0_epc + *contpc = regs->cp0_epc +
...@@ -502,12 +502,12 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -502,12 +502,12 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
break; break;
case jalx_op: case jalx_op:
set_isa16_mode(bit); set_isa16_mode(bit);
/* fall through */ fallthrough;
case jal_op: case jal_op:
regs->regs[31] = regs->cp0_epc + regs->regs[31] = regs->cp0_epc +
dec_insn.pc_inc + dec_insn.pc_inc +
dec_insn.next_pc_inc; dec_insn.next_pc_inc;
/* fall through */ fallthrough;
case j_op: case j_op:
*contpc = regs->cp0_epc + dec_insn.pc_inc; *contpc = regs->cp0_epc + dec_insn.pc_inc;
*contpc >>= 28; *contpc >>= 28;
...@@ -519,7 +519,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -519,7 +519,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
case beql_op: case beql_op:
if (NO_R6EMU) if (NO_R6EMU)
break; break;
/* fall through */ fallthrough;
case beq_op: case beq_op:
if (regs->regs[insn.i_format.rs] == if (regs->regs[insn.i_format.rs] ==
regs->regs[insn.i_format.rt]) regs->regs[insn.i_format.rt])
...@@ -534,7 +534,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -534,7 +534,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
case bnel_op: case bnel_op:
if (NO_R6EMU) if (NO_R6EMU)
break; break;
/* fall through */ fallthrough;
case bne_op: case bne_op:
if (regs->regs[insn.i_format.rs] != if (regs->regs[insn.i_format.rs] !=
regs->regs[insn.i_format.rt]) regs->regs[insn.i_format.rt])
...@@ -549,7 +549,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -549,7 +549,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
case blezl_op: case blezl_op:
if (!insn.i_format.rt && NO_R6EMU) if (!insn.i_format.rt && NO_R6EMU)
break; break;
/* fall through */ fallthrough;
case blez_op: case blez_op:
/* /*
...@@ -587,7 +587,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -587,7 +587,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
case bgtzl_op: case bgtzl_op:
if (!insn.i_format.rt && NO_R6EMU) if (!insn.i_format.rt && NO_R6EMU)
break; break;
/* fall through */ fallthrough;
case bgtz_op: case bgtz_op:
/* /*
* Compact branches for R6 for the * Compact branches for R6 for the
...@@ -725,7 +725,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, ...@@ -725,7 +725,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
return 1; return 1;
} }
/* R2/R6 compatible cop1 instruction */ /* R2/R6 compatible cop1 instruction */
/* fall through */ fallthrough;
case cop2_op: case cop2_op:
case cop1x_op: case cop1x_op:
if (insn.i_format.rs == bc_op) { if (insn.i_format.rs == bc_op) {
...@@ -1217,14 +1217,14 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx, ...@@ -1217,14 +1217,14 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
case bcfl_op: case bcfl_op:
if (cpu_has_mips_2_3_4_5_r) if (cpu_has_mips_2_3_4_5_r)
likely = 1; likely = 1;
/* fall through */ fallthrough;
case bcf_op: case bcf_op:
cond = !cond; cond = !cond;
break; break;
case bctl_op: case bctl_op:
if (cpu_has_mips_2_3_4_5_r) if (cpu_has_mips_2_3_4_5_r)
likely = 1; likely = 1;
/* fall through */ fallthrough;
case bct_op: case bct_op:
break; break;
} }
......
...@@ -92,8 +92,7 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y) ...@@ -92,8 +92,7 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
DPDNORMY; DPDNORMY;
break; break;
......
...@@ -91,8 +91,7 @@ union ieee754dp ieee754dp_div(union ieee754dp x, union ieee754dp y) ...@@ -91,8 +91,7 @@ union ieee754dp ieee754dp_div(union ieee754dp x, union ieee754dp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
DPDNORMY; DPDNORMY;
break; break;
......
...@@ -93,8 +93,7 @@ union ieee754dp ieee754dp_fmax(union ieee754dp x, union ieee754dp y) ...@@ -93,8 +93,7 @@ union ieee754dp ieee754dp_fmax(union ieee754dp x, union ieee754dp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
DPDNORMY; DPDNORMY;
break; break;
...@@ -222,8 +221,7 @@ union ieee754dp ieee754dp_fmaxa(union ieee754dp x, union ieee754dp y) ...@@ -222,8 +221,7 @@ union ieee754dp ieee754dp_fmaxa(union ieee754dp x, union ieee754dp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
DPDNORMY; DPDNORMY;
break; break;
......
...@@ -93,8 +93,7 @@ union ieee754dp ieee754dp_fmin(union ieee754dp x, union ieee754dp y) ...@@ -93,8 +93,7 @@ union ieee754dp ieee754dp_fmin(union ieee754dp x, union ieee754dp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
DPDNORMY; DPDNORMY;
break; break;
...@@ -222,8 +221,7 @@ union ieee754dp ieee754dp_fmina(union ieee754dp x, union ieee754dp y) ...@@ -222,8 +221,7 @@ union ieee754dp ieee754dp_fmina(union ieee754dp x, union ieee754dp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
DPDNORMY; DPDNORMY;
break; break;
......
...@@ -150,8 +150,7 @@ static union ieee754dp _dp_maddf(union ieee754dp z, union ieee754dp x, ...@@ -150,8 +150,7 @@ static union ieee754dp _dp_maddf(union ieee754dp z, union ieee754dp x,
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
if (zc == IEEE754_CLASS_INF) if (zc == IEEE754_CLASS_INF)
return ieee754dp_inf(zs); return ieee754dp_inf(zs);
......
...@@ -89,8 +89,7 @@ union ieee754dp ieee754dp_mul(union ieee754dp x, union ieee754dp y) ...@@ -89,8 +89,7 @@ union ieee754dp ieee754dp_mul(union ieee754dp x, union ieee754dp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
DPDNORMY; DPDNORMY;
break; break;
......
...@@ -52,8 +52,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x) ...@@ -52,8 +52,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x)
case IEEE754_CLASS_DNORM: case IEEE754_CLASS_DNORM:
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case IEEE754_CLASS_NORM: case IEEE754_CLASS_NORM:
if (xs) { if (xs) {
/* sqrt(-x) = Nan */ /* sqrt(-x) = Nan */
...@@ -130,7 +129,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x) ...@@ -130,7 +129,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x)
switch (oldcsr.rm) { switch (oldcsr.rm) {
case FPU_CSR_RU: case FPU_CSR_RU:
y.bits += 1; y.bits += 1;
/* fall through */ fallthrough;
case FPU_CSR_RN: case FPU_CSR_RN:
t.bits += 1; t.bits += 1;
break; break;
......
...@@ -94,8 +94,7 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y) ...@@ -94,8 +94,7 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
DPDNORMX; DPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
/* normalize ym,ye */ /* normalize ym,ye */
DPDNORMY; DPDNORMY;
......
...@@ -92,8 +92,7 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y) ...@@ -92,8 +92,7 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
SPDNORMY; SPDNORMY;
break; break;
......
...@@ -91,8 +91,7 @@ union ieee754sp ieee754sp_div(union ieee754sp x, union ieee754sp y) ...@@ -91,8 +91,7 @@ union ieee754sp ieee754sp_div(union ieee754sp x, union ieee754sp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
SPDNORMY; SPDNORMY;
break; break;
......
...@@ -34,8 +34,7 @@ union ieee754sp ieee754sp_fdp(union ieee754dp x) ...@@ -34,8 +34,7 @@ union ieee754sp ieee754sp_fdp(union ieee754dp x)
case IEEE754_CLASS_SNAN: case IEEE754_CLASS_SNAN:
x = ieee754dp_nanxcpt(x); x = ieee754dp_nanxcpt(x);
EXPLODEXDP; EXPLODEXDP;
/* fall through */ fallthrough;
case IEEE754_CLASS_QNAN: case IEEE754_CLASS_QNAN:
y = ieee754sp_nan_fdp(xs, xm); y = ieee754sp_nan_fdp(xs, xm);
if (!ieee754_csr.nan2008) { if (!ieee754_csr.nan2008) {
......
...@@ -93,8 +93,7 @@ union ieee754sp ieee754sp_fmax(union ieee754sp x, union ieee754sp y) ...@@ -93,8 +93,7 @@ union ieee754sp ieee754sp_fmax(union ieee754sp x, union ieee754sp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
SPDNORMY; SPDNORMY;
break; break;
...@@ -222,8 +221,7 @@ union ieee754sp ieee754sp_fmaxa(union ieee754sp x, union ieee754sp y) ...@@ -222,8 +221,7 @@ union ieee754sp ieee754sp_fmaxa(union ieee754sp x, union ieee754sp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
SPDNORMY; SPDNORMY;
break; break;
......
...@@ -93,8 +93,7 @@ union ieee754sp ieee754sp_fmin(union ieee754sp x, union ieee754sp y) ...@@ -93,8 +93,7 @@ union ieee754sp ieee754sp_fmin(union ieee754sp x, union ieee754sp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
SPDNORMY; SPDNORMY;
break; break;
...@@ -222,8 +221,7 @@ union ieee754sp ieee754sp_fmina(union ieee754sp x, union ieee754sp y) ...@@ -222,8 +221,7 @@ union ieee754sp ieee754sp_fmina(union ieee754sp x, union ieee754sp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
SPDNORMY; SPDNORMY;
break; break;
......
...@@ -119,8 +119,7 @@ static union ieee754sp _sp_maddf(union ieee754sp z, union ieee754sp x, ...@@ -119,8 +119,7 @@ static union ieee754sp _sp_maddf(union ieee754sp z, union ieee754sp x,
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
if (zc == IEEE754_CLASS_INF) if (zc == IEEE754_CLASS_INF)
return ieee754sp_inf(zs); return ieee754sp_inf(zs);
......
...@@ -89,8 +89,7 @@ union ieee754sp ieee754sp_mul(union ieee754sp x, union ieee754sp y) ...@@ -89,8 +89,7 @@ union ieee754sp ieee754sp_mul(union ieee754sp x, union ieee754sp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
SPDNORMY; SPDNORMY;
break; break;
......
...@@ -94,8 +94,7 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y) ...@@ -94,8 +94,7 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y)
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
SPDNORMX; SPDNORMX;
/* fall through */ fallthrough;
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM): case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
SPDNORMY; SPDNORMY;
break; break;
......
...@@ -1200,7 +1200,7 @@ static void probe_pcache(void) ...@@ -1200,7 +1200,7 @@ static void probe_pcache(void)
case CPU_VR4133: case CPU_VR4133:
write_c0_config(config & ~VR41_CONF_P4K); write_c0_config(config & ~VR41_CONF_P4K);
/* fall through */ fallthrough;
case CPU_VR4131: case CPU_VR4131:
/* Workaround for cache instruction bug of VR4131 */ /* Workaround for cache instruction bug of VR4131 */
if (c->processor_id == 0x0c80U || c->processor_id == 0x0c81U || if (c->processor_id == 0x0c80U || c->processor_id == 0x0c81U ||
...@@ -1426,7 +1426,7 @@ static void probe_pcache(void) ...@@ -1426,7 +1426,7 @@ static void probe_pcache(void)
case CPU_74K: case CPU_74K:
case CPU_1074K: case CPU_1074K:
has_74k_erratum = alias_74k_erratum(c); has_74k_erratum = alias_74k_erratum(c);
/* Fall through. */ fallthrough;
case CPU_M14KC: case CPU_M14KC:
case CPU_M14KEC: case CPU_M14KEC:
case CPU_24K: case CPU_24K:
...@@ -1450,7 +1450,7 @@ static void probe_pcache(void) ...@@ -1450,7 +1450,7 @@ static void probe_pcache(void)
c->dcache.flags |= MIPS_CACHE_PINDEX; c->dcache.flags |= MIPS_CACHE_PINDEX;
break; break;
} }
/* fall through */ fallthrough;
default: default:
if (has_74k_erratum || c->dcache.waysize > PAGE_SIZE) if (has_74k_erratum || c->dcache.waysize > PAGE_SIZE)
c->dcache.flags |= MIPS_CACHE_ALIASES; c->dcache.flags |= MIPS_CACHE_ALIASES;
......
...@@ -576,7 +576,7 @@ void build_tlb_write_entry(u32 **p, struct uasm_label **l, ...@@ -576,7 +576,7 @@ void build_tlb_write_entry(u32 **p, struct uasm_label **l,
case CPU_R5500: case CPU_R5500:
if (m4kc_tlbp_war()) if (m4kc_tlbp_war())
uasm_i_nop(p); uasm_i_nop(p);
/* fall through */ fallthrough;
case CPU_ALCHEMY: case CPU_ALCHEMY:
tlbw(p); tlbw(p);
break; break;
......
...@@ -172,15 +172,15 @@ static void mipsxx_cpu_setup(void *args) ...@@ -172,15 +172,15 @@ static void mipsxx_cpu_setup(void *args)
case 4: case 4:
w_c0_perfctrl3(0); w_c0_perfctrl3(0);
w_c0_perfcntr3(reg.counter[3]); w_c0_perfcntr3(reg.counter[3]);
/* fall through */ fallthrough;
case 3: case 3:
w_c0_perfctrl2(0); w_c0_perfctrl2(0);
w_c0_perfcntr2(reg.counter[2]); w_c0_perfcntr2(reg.counter[2]);
/* fall through */ fallthrough;
case 2: case 2:
w_c0_perfctrl1(0); w_c0_perfctrl1(0);
w_c0_perfcntr1(reg.counter[1]); w_c0_perfcntr1(reg.counter[1]);
/* fall through */ fallthrough;
case 1: case 1:
w_c0_perfctrl0(0); w_c0_perfctrl0(0);
w_c0_perfcntr0(reg.counter[0]); w_c0_perfcntr0(reg.counter[0]);
...@@ -198,13 +198,13 @@ static void mipsxx_cpu_start(void *args) ...@@ -198,13 +198,13 @@ static void mipsxx_cpu_start(void *args)
switch (counters) { switch (counters) {
case 4: case 4:
w_c0_perfctrl3(WHAT | reg.control[3]); w_c0_perfctrl3(WHAT | reg.control[3]);
/* fall through */ fallthrough;
case 3: case 3:
w_c0_perfctrl2(WHAT | reg.control[2]); w_c0_perfctrl2(WHAT | reg.control[2]);
/* fall through */ fallthrough;
case 2: case 2:
w_c0_perfctrl1(WHAT | reg.control[1]); w_c0_perfctrl1(WHAT | reg.control[1]);
/* fall through */ fallthrough;
case 1: case 1:
w_c0_perfctrl0(WHAT | reg.control[0]); w_c0_perfctrl0(WHAT | reg.control[0]);
} }
...@@ -221,13 +221,13 @@ static void mipsxx_cpu_stop(void *args) ...@@ -221,13 +221,13 @@ static void mipsxx_cpu_stop(void *args)
switch (counters) { switch (counters) {
case 4: case 4:
w_c0_perfctrl3(0); w_c0_perfctrl3(0);
/* fall through */ fallthrough;
case 3: case 3:
w_c0_perfctrl2(0); w_c0_perfctrl2(0);
/* fall through */ fallthrough;
case 2: case 2:
w_c0_perfctrl1(0); w_c0_perfctrl1(0);
/* fall through */ fallthrough;
case 1: case 1:
w_c0_perfctrl0(0); w_c0_perfctrl0(0);
} }
...@@ -245,7 +245,7 @@ static int mipsxx_perfcount_handler(void) ...@@ -245,7 +245,7 @@ static int mipsxx_perfcount_handler(void)
switch (counters) { switch (counters) {
#define HANDLE_COUNTER(n) \ #define HANDLE_COUNTER(n) \
/* fall through */ \ fallthrough; \
case n + 1: \ case n + 1: \
control = r_c0_perfctrl ## n(); \ control = r_c0_perfctrl ## n(); \
counter = r_c0_perfcntr ## n(); \ counter = r_c0_perfcntr ## n(); \
...@@ -307,15 +307,15 @@ static void reset_counters(void *arg) ...@@ -307,15 +307,15 @@ static void reset_counters(void *arg)
case 4: case 4:
w_c0_perfctrl3(0); w_c0_perfctrl3(0);
w_c0_perfcntr3(0); w_c0_perfcntr3(0);
/* fall through */ fallthrough;
case 3: case 3:
w_c0_perfctrl2(0); w_c0_perfctrl2(0);
w_c0_perfcntr2(0); w_c0_perfcntr2(0);
/* fall through */ fallthrough;
case 2: case 2:
w_c0_perfctrl1(0); w_c0_perfctrl1(0);
w_c0_perfcntr1(0); w_c0_perfcntr1(0);
/* fall through */ fallthrough;
case 1: case 1:
w_c0_perfctrl0(0); w_c0_perfctrl0(0);
w_c0_perfcntr0(0); w_c0_perfcntr0(0);
......
...@@ -151,8 +151,7 @@ int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) ...@@ -151,8 +151,7 @@ int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
case SNI_BRD_PCI_MTOWER: case SNI_BRD_PCI_MTOWER:
if (is_rm300_revd()) if (is_rm300_revd())
return irq_tab_rm300d[slot][pin]; return irq_tab_rm300d[slot][pin];
/* fall through */ fallthrough;
case SNI_BRD_PCI_DESKTOP: case SNI_BRD_PCI_DESKTOP:
return irq_tab_rm200[slot][pin]; return irq_tab_rm200[slot][pin];
......
...@@ -474,7 +474,7 @@ static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn) ...@@ -474,7 +474,7 @@ static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn)
if (PCI_SLOT(devfn) == 0) if (PCI_SLOT(devfn) == 0)
return bcm_pcie_readl(PCIE_DLSTATUS_REG) return bcm_pcie_readl(PCIE_DLSTATUS_REG)
& DLSTATUS_PHYLINKUP; & DLSTATUS_PHYLINKUP;
/* else, fall through */ fallthrough;
default: default:
return false; return false;
} }
......
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