]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: Annotate fall-through in kvm/emulate.c
authorPaul Burton <paul.burton@mips.com>
Wed, 17 Jul 2019 19:49:10 +0000 (19:49 +0000)
committerPaul Burton <paul.burton@mips.com>
Thu, 18 Jul 2019 21:41:04 +0000 (14:41 -0700)
commit5bbe54346b539b5938b65d542b6ff5e956c3c08d
tree014804f6211f0a1e138ff7d3426e72b86a77694b
parentb8bea8a5e5d942e62203416ab41edecaed4fda02
MIPS: Annotate fall-through in kvm/emulate.c

kvm_compute_return_epc contains a switch statement with an intentional
fall-through from a case handling jal (jump and link) instructions to
one handling j (jump) instructions. With -Wimplicit-fallthrough this
triggers a compile error (due to -Werror being enabled for arch/mips).

This can be reproduced using malta_kvm_defconfig.

Fix this by annotating the intentional fall-through.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/kvm/emulate.c