Skip to content

Commit e792415

Browse files
Xingxing Subonzini
authored andcommitted
KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup
Commit c34b26b ("KVM: MIPS: clean up redundant 'kvm_run' parameters") remove the 'kvm_run' parameter in kvm_vz_gpsi_lwc2. The following build error: arch/mips/kvm/vz.c: In function 'kvm_trap_vz_handle_gpsi': arch/mips/kvm/vz.c:1243:43: error: 'run' undeclared (first use in this function) er = kvm_vz_gpsi_lwc2(inst, opc, cause, run, vcpu); ^~~ arch/mips/kvm/vz.c:1243:43: note: each undeclared identifier is reported only once for each function it appears in scripts/Makefile.build:283: recipe for target 'arch/mips/kvm/vz.o' failed make[2]: *** [arch/mips/kvm/vz.o] Error 1 scripts/Makefile.build:500: recipe for target 'arch/mips/kvm' failed make[1]: *** [arch/mips/kvm] Error 2 Makefile:1785: recipe for target 'arch/mips' failed make: *** [arch/mips] Error 2 Signed-off-by: Xingxing Su <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 99b48ec commit e792415

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/mips/kvm/vz.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,6 @@ static enum emulation_result kvm_vz_gpsi_cache(union mips_instruction inst,
11441144
#ifdef CONFIG_CPU_LOONGSON64
11451145
static enum emulation_result kvm_vz_gpsi_lwc2(union mips_instruction inst,
11461146
u32 *opc, u32 cause,
1147-
struct kvm_run *run,
11481147
struct kvm_vcpu *vcpu)
11491148
{
11501149
unsigned int rs, rd;
@@ -1242,7 +1241,7 @@ static enum emulation_result kvm_trap_vz_handle_gpsi(u32 cause, u32 *opc,
12421241
#endif
12431242
#ifdef CONFIG_CPU_LOONGSON64
12441243
case lwc2_op:
1245-
er = kvm_vz_gpsi_lwc2(inst, opc, cause, run, vcpu);
1244+
er = kvm_vz_gpsi_lwc2(inst, opc, cause, vcpu);
12461245
break;
12471246
#endif
12481247
case spec3_op:

0 commit comments

Comments
 (0)