lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Thu, 29 Sep 2016 20:26:15 +0200
From:   Radim Krčmář <rkrcmar@...hat.com>
To:     Borislav Petkov <bp@...en8.de>
Cc:     KVM <kvm@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kvm/x86: Fix unused variable warning in kvm_timer_init()

2016-09-04 19:13+0200, Borislav Petkov:
> From: Borislav Petkov <bp@...e.de>
> 
> 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@...e.de>
> ---

Applied to kvm/queue, thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ