]> err.no Git - linux-2.6/commit
KVM: x86 emulator: fix sparse warnings in x86_emulate.c
authorHarvey Harrison <harvey.harrison@gmail.com>
Tue, 19 Feb 2008 18:43:11 +0000 (10:43 -0800)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:24 +0000 (11:53 +0300)
commit77cd337f2246ae72915538383e8f5a6b7ffb363d
treec810a1dba3ca581854fb4c790d6c39270a3c4443
parentf11c3a8d84d7bf091bf963edd7104dd4ba6416c3
KVM: x86 emulator: fix sparse warnings in x86_emulate.c

Nesting __emulate_2op_nobyte inside__emulate_2op produces many shadowed
variable warnings on the internal variable _tmp used by both macros.

Change the outer macro to use __tmp.

Avoids a sparse warning like the following at every call site of __emulate_2op
arch/x86/kvm/x86_emulate.c:1091:3: 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 <harvey.harrison@gmail.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86_emulate.c