Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Fix fall-through warnings for Clang

Fix the following fallthrough warnings:

arch/mips/mm/tlbex.c:1386:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
arch/mips/mm/tlbex.c:2173:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/lkml/60edca25.k00ut905IFBjPyt5%25lkp@intel.com/
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>

+2
+2
arch/mips/mm/tlbex.c
··· 1383 1383 switch (boot_cpu_type()) { 1384 1384 default: 1385 1385 if (sizeof(long) == 4) { 1386 + fallthrough; 1386 1387 case CPU_LOONGSON2EF: 1387 1388 /* Loongson2 ebase is different than r4k, we have more space */ 1388 1389 if ((p - tlb_handler) > 64) ··· 2170 2169 default: 2171 2170 if (cpu_has_mips_r2_exec_hazard) { 2172 2171 uasm_i_ehb(&p); 2172 + fallthrough; 2173 2173 2174 2174 case CPU_CAVIUM_OCTEON: 2175 2175 case CPU_CAVIUM_OCTEON_PLUS: