git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d68ce01
)
x86, hyperv: Move a variable to avoid an unused variable warning
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 6 Nov 2013 18:00:05 +0000
(10:00 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 6 Nov 2013 18:02:05 +0000
(10:02 -0800)
The variable hv_lapic_frequency causes an unused variable warning if
CONFIG_X86_LOCAL_APIC is disabled. Since the variable is only used
inside a small if statement, move the declaration of that variable
into the if statement itself.
Cc: K. Y. Srinivasan <kys@microsoft.com>
Link:
http://lkml.kernel.org/r/1381444224-3303-1-git-send-email-kys@microsoft.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/mshyperv.c
patch
|
blob
|
history
diff --cc
arch/x86/kernel/cpu/mshyperv.c
Simple merge