aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-11-22 18:35:10 -0600
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-11-22 18:39:24 -0600
commitcd3ed04e7fc365e4e581333c3ff69c8da6ca0e8b (patch)
treecd20d3a3019dffd7bb2598900492f307074b503b
parent136057256686de39cc3a07c2e39ef6bc43003ff6 (diff)
downloadlinux-cd3ed04e7fc365e4e581333c3ff69c8da6ca0e8b.tar.gz
MIPS: mm: tlbex: Fix fall-through warning for Clang
Fix the following fallthrough warning: arch/mips/mm/tlbex.c:2243:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case CPU_CAVIUM_OCTEON: ^ arch/mips/mm/tlbex.c:2243:3: note: insert 'break;' to avoid fall-through case CPU_CAVIUM_OCTEON: ^ break; Link: https://lore.kernel.org/lkml/202111230719.OZDUHU4z-lkp@intel.com/ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
-rw-r--r--arch/mips/mm/tlbex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index b131e6a773832..bede66b072a74 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -2240,6 +2240,7 @@ static void build_r4000_tlb_load_handler(void)
if (cpu_has_mips_r2_exec_hazard) {
uasm_i_ehb(&p);
+ fallthrough;
case CPU_CAVIUM_OCTEON:
case CPU_CAVIUM_OCTEON_PLUS:
case CPU_CAVIUM_OCTEON2: