]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Sanitise Cavium switch cases in TLB handler synthesizers
authorMaciej W. Rozycki <macro@orcam.me.uk>
Fri, 4 Mar 2022 21:13:11 +0000 (21:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:06:14 +0000 (14:06 +0200)
commitb2eb97a285af4d921d5d5f57a5f8fe5c4659142c
tree935e7d192cf53e30b2b42deedf8a780cd64d65fd
parentba088f6e3e538050b4e0f1bbb350ec4f1db7eb73
MIPS: Sanitise Cavium switch cases in TLB handler synthesizers

[ Upstream commit 6ddcba9d480b6bcced4223a729794dfa6becb7eb ]

It makes no sense to fall through to `break'.  Therefore reorder the
switch statements so as to have the Cavium cases first, followed by the
default case, which improves readability and pacifies code analysis
tools.  No change in semantics, assembly produced is exactly the same.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Fixes: bc431d2153cc ("MIPS: Fix fall-through warnings for Clang")
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/mm/tlbex.c