• Paul Burton's avatar
    MIPS: Annotate fall-through in kvm/emulate.c · 5bbe5434
    Paul Burton authored
    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: default avatarPaul Burton <paul.burton@mips.com>
    Cc: linux-mips@vger.kernel.org
    5bbe5434
emulate.c 75.1 KB