]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: sparse fixes for kvm/x86.c
authorHarvey Harrison <harvey.harrison@gmail.com>
Tue, 19 Feb 2008 18:25:50 +0000 (10:25 -0800)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:24 +0000 (11:53 +0300)
commit24fc4bb5c9545f5d42f395ff1718f94e5e1370c1
treeaee57781bbd073a123b8191ace0261f339dc06ee
parent850cc808a6b0b82323201f620fdba6c354bc1914
KVM: sparse fixes for kvm/x86.c

In two case statements, use the ever popular 'i' instead of index:
arch/x86/kvm/x86.c:1063:7: warning: symbol 'index' shadows an earlier one
arch/x86/kvm/x86.c:1000:9: originally declared here
arch/x86/kvm/x86.c:1079:7: warning: symbol 'index' shadows an earlier one
arch/x86/kvm/x86.c:1000:9: originally declared here

Make it static.
arch/x86/kvm/x86.c:1945:24: warning: symbol 'emulate_ops' was not declared. Should it be static?

Drop the return statements.
arch/x86/kvm/x86.c:2878:2: warning: returning void-valued expression
arch/x86/kvm/x86.c:2944:2: warning: returning void-valued expression

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c