]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix unreachable code issue
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 13 Jul 2021 18:41:16 +0000 (13:41 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 13 Jul 2021 20:08:15 +0000 (15:08 -0500)
commit3e6bdbe72848ebba649f1996fbfb18bf318b32b6
tree08d5aa5238c6e902fe7182bbe35e5745cde845bc
parent5138e795134a38786d2f651b545ed627e9a0211b
MIPS: Fix unreachable code issue

Fix the following warning (mips-randconfig):

arch/mips/include/asm/fpu.h:79:3: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough]

Originally, the /* fallthrough */ comment was introduced by commit:

130d9cc59c42 ("MIPS: Support for 64-bit FP with O32 binaries")

and it was wrongly replaced with fallthrough; by commit:

3f625eb935f8 ("MIPS: Use fallthrough for arch/mips")

As the original comment is actually useful, fix this issue by
removing unreachable fallthrough; statement and place the original
/* fallthrough */ comment back.

Fixes: 3f625eb935f8 ("MIPS: Use fallthrough for arch/mips")
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>
arch/mips/include/asm/fpu.h