Re: [PATCH kvmtool] arm: Initialize target in kvm_cpu__arch_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Zenghui,

On Wed, Sep 27, 2023 at 08:21:47PM +0800, Zenghui Yu wrote:
> On 2023/9/27 19:21, Mostafa Saleh wrote:
> > arm/kvm-cpu.c: In function ‘kvm_cpu__arch_init’:
> > arm/kvm-cpu.c:119:41: error: ‘target’ may be used uninitialized [-Werror=maybe-uninitialized]
> >   119 |         vcpu->cpu_compatible    = target->compatible;
> >       |                                   ~~~~~~^~~~~~~~~~~~
> > arm/kvm-cpu.c:40:32: note: ‘target’ was declared here
> >    40 |         struct kvm_arm_target *target;
> >       |                                ^~~~~~
> 
> Already addressed by 426e875213d3 ("arm/kvm-cpu: Fix new build
> warning").

Oh, I see that now, I was on the wrong branch, thanks for pointing
this!

> Zenghui

Thanks,
Mostafa



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux