Merge tag 'mips_fixes_5.3_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux

Pull MIPS fixes from Paul Burton:
"A few MIPS fixes for 5.3:

- Various switch fall through annotations to fixup warnings & errors
resulting from -Wimplicit-fallthrough.

- A fix for systems (at least jazz) using an i8253 PIT as clocksource
when it's not suitably configured.

- Set struct cacheinfo's cpu_map_populated field to true, indicating
that we filled in cache info detected from cop0 registers &
avoiding complaints about that info being (intentionally) missing
in devicetree"

* tag 'mips_fixes_5.3_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
MIPS: BCM63XX: Mark expected switch fall-through
MIPS: OProfile: Mark expected switch fall-throughs
MIPS: Annotate fall-through in Cavium Octeon code
MIPS: Annotate fall-through in kvm/emulate.c
mips: fix cacheinfo
MIPS: kernel: only use i8253 clocksource with periodic clockevent

Changed files
+20 -1
arch
mips
+1
arch/mips/cavium-octeon/octeon-usb.c
··· 398 398 default: 399 399 dev_err(dev, "Invalid ref_clk %u, using 100000000 instead\n", 400 400 clock_rate); 401 + /* fall through */ 401 402 case 100000000: 402 403 mpll_mul = 0x19; 403 404 if (ref_clk_sel < 2)
+2
arch/mips/kernel/cacheinfo.c
··· 69 69 if (c->tcache.waysize) 70 70 populate_cache(tcache, this_leaf, 3, CACHE_TYPE_UNIFIED); 71 71 72 + this_cpu_ci->cpu_map_populated = true; 73 + 72 74 return 0; 73 75 } 74 76
+2 -1
arch/mips/kernel/i8253.c
··· 32 32 33 33 static int __init init_pit_clocksource(void) 34 34 { 35 - if (num_possible_cpus() > 1) /* PIT does not scale! */ 35 + if (num_possible_cpus() > 1 || /* PIT does not scale! */ 36 + !clockevent_state_periodic(&i8253_clockevent)) 36 37 return 0; 37 38 38 39 return clocksource_i8253_init();
+1
arch/mips/kvm/emulate.c
··· 140 140 /* These are unconditional and in j_format. */ 141 141 case jal_op: 142 142 arch->gprs[31] = instpc + 8; 143 + /* fall through */ 143 144 case j_op: 144 145 epc += 4; 145 146 epc >>= 28;
+13
arch/mips/oprofile/op_model_mipsxx.c
··· 172 172 case 4: 173 173 w_c0_perfctrl3(0); 174 174 w_c0_perfcntr3(reg.counter[3]); 175 + /* fall through */ 175 176 case 3: 176 177 w_c0_perfctrl2(0); 177 178 w_c0_perfcntr2(reg.counter[2]); 179 + /* fall through */ 178 180 case 2: 179 181 w_c0_perfctrl1(0); 180 182 w_c0_perfcntr1(reg.counter[1]); 183 + /* fall through */ 181 184 case 1: 182 185 w_c0_perfctrl0(0); 183 186 w_c0_perfcntr0(reg.counter[0]); ··· 198 195 switch (counters) { 199 196 case 4: 200 197 w_c0_perfctrl3(WHAT | reg.control[3]); 198 + /* fall through */ 201 199 case 3: 202 200 w_c0_perfctrl2(WHAT | reg.control[2]); 201 + /* fall through */ 203 202 case 2: 204 203 w_c0_perfctrl1(WHAT | reg.control[1]); 204 + /* fall through */ 205 205 case 1: 206 206 w_c0_perfctrl0(WHAT | reg.control[0]); 207 207 } ··· 221 215 switch (counters) { 222 216 case 4: 223 217 w_c0_perfctrl3(0); 218 + /* fall through */ 224 219 case 3: 225 220 w_c0_perfctrl2(0); 221 + /* fall through */ 226 222 case 2: 227 223 w_c0_perfctrl1(0); 224 + /* fall through */ 228 225 case 1: 229 226 w_c0_perfctrl0(0); 230 227 } ··· 245 236 246 237 switch (counters) { 247 238 #define HANDLE_COUNTER(n) \ 239 + /* fall through */ \ 248 240 case n + 1: \ 249 241 control = r_c0_perfctrl ## n(); \ 250 242 counter = r_c0_perfcntr ## n(); \ ··· 307 297 case 4: 308 298 w_c0_perfctrl3(0); 309 299 w_c0_perfcntr3(0); 300 + /* fall through */ 310 301 case 3: 311 302 w_c0_perfctrl2(0); 312 303 w_c0_perfcntr2(0); 304 + /* fall through */ 313 305 case 2: 314 306 w_c0_perfctrl1(0); 315 307 w_c0_perfcntr1(0); 308 + /* fall through */ 316 309 case 1: 317 310 w_c0_perfctrl0(0); 318 311 w_c0_perfcntr0(0);
+1
arch/mips/pci/ops-bcm63xx.c
··· 474 474 if (PCI_SLOT(devfn) == 0) 475 475 return bcm_pcie_readl(PCIE_DLSTATUS_REG) 476 476 & DLSTATUS_PHYLINKUP; 477 + /* else, fall through */ 477 478 default: 478 479 return false; 479 480 }