diff options
| author | Borislav Petkov <[email protected]> | 2016-09-04 17:13:57 +0000 |
|---|---|---|
| committer | Radim Krčmář <[email protected]> | 2016-10-20 12:49:52 +0000 |
| commit | 758f588d6fa2b1e64b6ae4bc4e7e86331bdee479 (patch) | |
| tree | aa7e9dce452dd1df1a7ad49dce5efc1c5d2503bf /scripts/gcc-plugins/gcc-common.h | |
| parent | Linux 4.9-rc1 (diff) | |
| download | kernel-758f588d6fa2b1e64b6ae4bc4e7e86331bdee479.tar.gz kernel-758f588d6fa2b1e64b6ae4bc4e7e86331bdee479.zip | |
kvm/x86: Fix unused variable warning in kvm_timer_init()
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 <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
