Re: [PATCH] kvm/x86: Fix unused variable warning in kvm_timer_init()

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

 



2016-09-04 19:13+0200, Borislav Petkov:
> From: Borislav Petkov <bp@xxxxxxx>
> 
> When CONFIG_CPU_FREQ is not set, int cpu is unused and gcc rightfully
> warns about it:
> 
>   arch/x86/kvm/x86.c: In function ‘kvm_timer_init’:
>   arch/x86/kvm/x86.c:5697:6: warning: unused variable ‘cpu’ [-Wunused-variable]
>     int cpu;
>         ^~~
> 
> But since it is used only in the CONFIG_CPU_FREQ block, simply move it
> there, thus squashing the warning too.
> 
> Signed-off-by: Borislav Petkov <bp@xxxxxxx>
> ---

Applied to kvm/queue, thanks.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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