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 <[email protected]> Reviewed-by: Huacai Chen <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent cf99c50 commit f40a4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)