[kvm-devel] [PATCH] kvm: fix sparse warnings in x86_emulate.c

2008-02-19 Thread Harvey Harrison
: warning: symbol '_tmp' shadows an earlier one arch/x86/kvm/x86_emulate.c:1091:3: originally declared here [18 more warnings suppressed] Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- arch/x86/kvm/x86_emulate.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

[kvm-devel] [PATCH] kvm: make iopm_base static

2008-02-19 Thread Harvey Harrison
Fixes sparse warning as well. arch/x86/kvm/svm.c:69:15: warning: symbol 'iopm_base' was not declared. Should it be static? Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- arch/x86/kvm/svm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch

[kvm-devel] [PATCH] kvm: sparse fixes for kvm/x86.c

2008-02-19 Thread Harvey Harrison
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 <[EMAIL PROTECTED]> --- Ingo, I had originally sent this to you, please drop it if you haven't already done so, I'l

[kvm-devel] [PATCH 3/3] x86, kvm: make register_address_increment and JMP_REL static inlines

2008-02-19 Thread Harvey Harrison
Change to jmp_rel now that it is a function. Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- Against kvm.git:master arch/x86/kvm/x86_emulate.c | 56 --- 1 files changed, 26 insertions(+), 30 deletions(-) diff --git a/arch/x86/kvm/x86_emula

[kvm-devel] [PATCH 1/3] x86, kvm: add ad_mask static inline

2008-02-19 Thread Harvey Harrison
Replaces open-coded mask calculation in macros. Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- Against kvm.git:master arch/x86/kvm/x86_emulate.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emu

[kvm-devel] [PATCH 2/3] x86, kvm: make register_address, address_mask static inlines

2008-02-19 Thread Harvey Harrison
Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- Against kvm.git:master arch/x86/kvm/x86_emulate.c | 48 ++- 1 files changed, 29 insertions(+), 19 deletions(-) diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index f