All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup
@ 2020-08-11  9:31 Xingxing Su
  2020-08-11 11:19 ` Paolo Bonzini
  2020-08-11 14:37 ` Jiaxun Yang
  0 siblings, 2 replies; 4+ messages in thread
From: Xingxing Su @ 2020-08-11  9:31 UTC (permalink / raw)
  To: Huacai Chen, Thomas Bogendoerfer, Aleksandar Markovic, Paolo Bonzini
  Cc: kvm, linux-mips, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1801 bytes --]

Commit c34b26b98caca48ec9ee9 ("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 <suxingxing@loongson.cn>
---
 +cc Paolo Bonzini <pbonzini@redhat.com> and kvm@vger.kernel.org.

 arch/mips/kvm/vz.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c
index 3932f76..49c6a2a 100644
--- a/arch/mips/kvm/vz.c
+++ b/arch/mips/kvm/vz.c
@@ -1142,7 +1142,6 @@ static enum emulation_result kvm_vz_gpsi_cache(union mips_instruction inst,
 #ifdef CONFIG_CPU_LOONGSON64
 static enum emulation_result kvm_vz_gpsi_lwc2(union mips_instruction inst,
 					      u32 *opc, u32 cause,
-					      struct kvm_run *run,
 					      struct kvm_vcpu *vcpu)
 {
 	unsigned int rs, rd;
@@ -1240,7 +1239,7 @@ static enum emulation_result kvm_trap_vz_handle_gpsi(u32 cause, u32 *opc,
 #endif
 #ifdef CONFIG_CPU_LOONGSON64
 	case lwc2_op:
-		er = kvm_vz_gpsi_lwc2(inst, opc, cause, run, vcpu);
+		er = kvm_vz_gpsi_lwc2(inst, opc, cause, vcpu);
 		break;
 #endif
 	case spec3_op:
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup
  2020-08-11  9:31 [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup Xingxing Su
@ 2020-08-11 11:19 ` Paolo Bonzini
  2020-08-11 14:37 ` Jiaxun Yang
  1 sibling, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2020-08-11 11:19 UTC (permalink / raw)
  To: Xingxing Su, Huacai Chen, Thomas Bogendoerfer, Aleksandar Markovic
  Cc: kvm, linux-mips, linux-kernel

On 11/08/20 11:31, Xingxing Su wrote:
> Commit c34b26b98caca48ec9ee9 ("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 <suxingxing@loongson.cn>
> ---
>  +cc Paolo Bonzini <pbonzini@redhat.com> and kvm@vger.kernel.org.
> 
>  arch/mips/kvm/vz.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c
> index 3932f76..49c6a2a 100644
> --- a/arch/mips/kvm/vz.c
> +++ b/arch/mips/kvm/vz.c
> @@ -1142,7 +1142,6 @@ static enum emulation_result kvm_vz_gpsi_cache(union mips_instruction inst,
>  #ifdef CONFIG_CPU_LOONGSON64
>  static enum emulation_result kvm_vz_gpsi_lwc2(union mips_instruction inst,
>  					      u32 *opc, u32 cause,
> -					      struct kvm_run *run,
>  					      struct kvm_vcpu *vcpu)
>  {
>  	unsigned int rs, rd;
> @@ -1240,7 +1239,7 @@ static enum emulation_result kvm_trap_vz_handle_gpsi(u32 cause, u32 *opc,
>  #endif
>  #ifdef CONFIG_CPU_LOONGSON64
>  	case lwc2_op:
> -		er = kvm_vz_gpsi_lwc2(inst, opc, cause, run, vcpu);
> +		er = kvm_vz_gpsi_lwc2(inst, opc, cause, vcpu);
>  		break;
>  #endif
>  	case spec3_op:
> 

Queued, thanks.

Paolo


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup
  2020-08-11  9:31 [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup Xingxing Su
  2020-08-11 11:19 ` Paolo Bonzini
@ 2020-08-11 14:37 ` Jiaxun Yang
  2020-08-11 14:38   ` Jiaxun Yang
  1 sibling, 1 reply; 4+ messages in thread
From: Jiaxun Yang @ 2020-08-11 14:37 UTC (permalink / raw)
  To: Xingxing Su, Huacai Chen, Thomas Bogendoerfer,
	Aleksandar Markovic, Paolo Bonzini
  Cc: kvm, linux-mips, linux-kernel



在 2020/8/11 下午5:31, Xingxing Su 写道:
> Commit c34b26b98caca48ec9ee9 ("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 <suxingxing@loongson.cn>

That have already quened in Paolo's KVM tree.

Thanks.

- Jiaxun

> ---
>   +cc Paolo Bonzini <pbonzini@redhat.com> and kvm@vger.kernel.org.
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup
  2020-08-11 14:37 ` Jiaxun Yang
@ 2020-08-11 14:38   ` Jiaxun Yang
  0 siblings, 0 replies; 4+ messages in thread
From: Jiaxun Yang @ 2020-08-11 14:38 UTC (permalink / raw)
  To: Xingxing Su, Huacai Chen, Thomas Bogendoerfer,
	Aleksandar Markovic, Paolo Bonzini
  Cc: kvm, linux-mips, linux-kernel



在 2020/8/11 下午10:37, Jiaxun Yang 写道:
>
>
> 在 2020/8/11 下午5:31, Xingxing Su 写道:
>> Commit c34b26b98caca48ec9ee9 ("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 <suxingxing@loongson.cn>
>
> That have already quened in Paolo's KVM tree.
>
> Thanks.

Oops, I was looking at the wrong place, please ignore the noise.

Thanks.

- Jiaxun

>
> - Jiaxun
>
>> ---
>>   +cc Paolo Bonzini <pbonzini@redhat.com> and kvm@vger.kernel.org.
>>
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-11 14:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11  9:31 [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup Xingxing Su
2020-08-11 11:19 ` Paolo Bonzini
2020-08-11 14:37 ` Jiaxun Yang
2020-08-11 14:38   ` Jiaxun Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.