Skip to content

Commit f40a4b0

Browse files
FlyGoatbonzini
authored andcommitted
MIPS: KVM: Convert a fallthrough comment to fallthrough
There is a fallthrough comment being forgotten, GCC complains about it: arch/mips/kvm/emulate.c: In function kvm_mips_emulate_load: arch/mips/kvm/emulate.c:1936:21: error: this statement may fall through 1936 | vcpu->mmio_needed = 1; /* unsigned */ | ~~~~~~~~~~~~~~~~~~^~~ arch/mips/kvm/emulate.c:1939:2: note: here 1939 | case lw_op: Just fix it. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Huacai Chen <chenhc@lemote.com> Message-Id: <20200810011749.3211128-1-jiaxun.yang@flygoat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent cf99c50 commit f40a4b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/mips/kvm/emulate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ enum emulation_result kvm_mips_emulate_load(union mips_instruction inst,
19351935

19361936
case lwu_op:
19371937
vcpu->mmio_needed = 1; /* unsigned */
1938-
/* fall through */
1938+
fallthrough;
19391939
#endif
19401940
case lw_op:
19411941
run->mmio.len = 4;

0 commit comments

Comments
 (0)